本文整理汇总了C#中IPlugin类的典型用法代码示例。如果您正苦于以下问题:C# IPlugin类的具体用法?C# IPlugin怎么用?C# IPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPlugin类属于命名空间,在下文中一共展示了IPlugin类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: WithPlugin
public PluginList WithPlugin(IPlugin plugin)
{
var result = new PluginList();
result._plugins.AddRange(Plugins);
result._plugins.Add(plugin);
return result;
}
开发者ID:fschwiet,项目名称:Gifenstein,代码行数:7,代码来源:PluginList.cs
示例2: getInstance
/// <summary>
/// Create single instance
/// </summary>
/// <returns></returns>
public static DomainFacade getInstance(IPlugin pPlugin)
{
if (cInstance == null)
cInstance = new DomainFacade(pPlugin);
return (cInstance);
}
开发者ID:vaginessa,项目名称:Simsang,代码行数:11,代码来源:DomainFacade.cs
示例3: PluginEntry
public PluginEntry(IPlugin plugin,string filename)
{
m_filename = filename;
m_plugin = plugin;
m_enabled = false;
m_licensed = false;
}
开发者ID:gobrien4418,项目名称:UVDLPSlicerController,代码行数:7,代码来源:PluginEntry.cs
示例4: WriteSkinsFileEditSkin
/// <summary>
/// Writes the skins file to disk to with all NoteFly skins.
/// </summary>
/// <param name="host"></param>
/// <param name="editskinnr"></param>
/// <param name="editskin"></param>
/// <returns>true if writing skins file was succesfull.</returns>
public static bool WriteSkinsFileEditSkin(IPlugin.IPluginHost host, int editskinnr, Skin editskin)
{
XmlTextWriter xmlwriter = null;
bool succeed = false;
try
{
xmlwriter = WriteSkinFileHeader(host.GetSkinsFile());
for (int i = 0; i < host.CountSkins; i++)
{
Skin currentskin = null;
if (editskinnr == i)
{
currentskin = editskin;
}
else
{
currentskin = SkinFactory.GetSkin(host, i);
}
WriteSkinsFileSkin(xmlwriter, currentskin);
}
xmlwriter = WriteSkinFileFooter(xmlwriter);
succeed = true;
}
finally
{
if (xmlwriter != null)
{
xmlwriter.Close();
}
}
return succeed;
}
开发者ID:NoteFly,项目名称:SkinEditor-plugin,代码行数:42,代码来源:SkinsFilehandling.cs
示例5: Initialize
public void Initialize(IPlugin plugin)
{
pipeListener = new NamedPipeListener<string>("SlavApp.Minion.Resembler");
pipeListener.MessageReceived += (sender, e) => { OnMessageReceived(plugin, e); };
pipeListener.Error += (sender, e) => { OnError(e); };
pipeListener.Start();
}
开发者ID:sgnatonski,项目名称:slavapp,代码行数:7,代码来源:DirectorySearchHandler.cs
示例6: DomainFacade
private DomainFacade(InjectionConfig pProxyConfig, IPlugin pPlugin)
{
cPlugin = pPlugin;
cInfrastructure = InfrastructureFacade.getInstance(pProxyConfig, pPlugin);
cRecordList = new List<InjectedURLRecord>();
cObservers = new List<IObserver>();
}
开发者ID:vaginessa,项目名称:Simsang,代码行数:7,代码来源:DomainFacade.cs
示例7: Configure
/// <summary>
/// The configure.
/// </summary>
/// <param name="targetPlugin">
/// The target plugin.
/// </param>
/// <returns>
/// The <see cref="IConfig"/>.
/// </returns>
public IConfig Configure(IPlugin targetPlugin)
{
IConfig currentConfig = targetPlugin.Configuration,
defaultConfig = targetPlugin.DefaultConfig,
targetConfig = currentConfig ?? defaultConfig;
if (targetConfig != null && defaultConfig != null)
{
using (
var configDialog =
new ObjectBrowserDialog(
string.Format(CultureInfo.InvariantCulture, "{0} Configuration", targetPlugin.GetDetail().Key).Trim(),
targetConfig,
defaultConfig,
this._logger))
{
var result = configDialog.ShowDialog();
if (result == DialogResult.OK)
{
return configDialog.ResultObject as IConfig;
}
}
}
return currentConfig;
}
开发者ID:tu-tran,项目名称:FareLiz,代码行数:35,代码来源:DefaultConfigBuilder.cs
示例8: getInstance
/// <summary>
/// Create single instance
/// </summary>
/// <returns></returns>
public static DomainFacade getInstance(IPAccountingConfig pConfig, IPlugin pPlugin)
{
if (cInstance == null)
cInstance = new DomainFacade(pConfig, pPlugin);
return (cInstance);
}
开发者ID:vaginessa,项目名称:Simsang,代码行数:11,代码来源:DomainFacade.cs
示例9: Initialise
public override void Initialise(IPlugin plugin)
{
ICommandConsole console = plugin as ICommandConsole;
if (console == null)
return;
console.Initialize(m_defaultPrompt, m_source, m_baseOpenSim);
}
开发者ID:NickyPerian,项目名称:Aurora,代码行数:7,代码来源:ICommandConsole.cs
示例10: Register
/// <summary>
/// 注册一个插件
/// </summary>
public bool Register(IPlugin vPlug)
{
/*
ListBoxItem item = new ListBoxItem();
item.MouseDoubleClick += NewLoad;
list1.Items.Add(vPlug.PlugName);*/
try
{
this.regPluginList.Add(vPlug);//添加到已注册列表
GridItem button = new GridItem("Image/fullbox_desk_clear.png", vPlug.PlugName);
int pluNum = this.regPluginList.Count;
int x = (pluNum - 1) % 6;
int y = (pluNum - 1) / 6;
AddToGrid(button, x, y);
//----超出部分未处理
return true;
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
return false;
}
}
开发者ID:moonrailgun,项目名称:MRGSoftPlatform,代码行数:29,代码来源:MainWindow.xaml.cs
示例11: DomainFacade
/// <summary>
///
/// </summary>
private DomainFacade(IPAccountingConfig pConfig, IPlugin pPlugin)
{
cPlugin = pPlugin;
cRecordList = new List<AccountingItem>();
cObserverList = new List<IObserver>();
cInfrastructure = InfrastructureFacade.getInstance(pConfig, pPlugin, ref cRecordList);
}
开发者ID:vaginessa,项目名称:Simsang,代码行数:10,代码来源:DomainFacade.cs
示例12: DomainFacade
/// <summary>
///
/// </summary>
public DomainFacade(ProxyConfig pProxyConfig, IPlugin pPlugin)
{
cPlugin = pPlugin;
cRecordList = new List<IMAP4Account>();
cObserverList = new List<IObserver>();
cInfrastructure = InfrastructureFacade.getInstance(pProxyConfig, pPlugin);
}
开发者ID:vaginessa,项目名称:Simsang,代码行数:10,代码来源:DomainFacade.cs
示例13: PluginTreeNode
public PluginTreeNode(Type type)
{
_type = type;
_instance = (IPlugin)Activator.CreateInstance(_type);
IPluginData[] data = _instance.GetData();
foreach (IPluginData item in data)
{
if (item.Children == null)
{
Nodes.Add(new LeafTreeNode(item));
}
else
{
int i = Nodes.Add(new BranchTreeNode(item));
var newNode = Nodes[i];
foreach (IPluginData childItem in item.Children)
{
if (childItem.Children == null)
{
newNode.Nodes.Add(new LeafTreeNode(childItem));
}
else
{
newNode.Nodes.Add(new BranchTreeNode(childItem));
}
}
}
}
Text = DisplayName;
}
开发者ID:gmoller,项目名称:GymWorkoutTracker,代码行数:32,代码来源:PluginTreeNode.cs
示例14: Battle
public Battle(IEnumerable<IEnumerable<Character>> teams, IPlugin interopPlugin, IJSScriptHelper scriptHelper, IRandomHelper randomHelper)
{
if(teams == null)
{
throw new ArgumentNullException(nameof(teams));
}
if(interopPlugin == null)
{
throw new ArgumentNullException(nameof(interopPlugin));
}
if(scriptHelper == null)
{
throw new ArgumentNullException(nameof(scriptHelper));
}
if(randomHelper == null)
{
throw new ArgumentNullException(nameof(randomHelper));
}
this.AllCharactersInTeams = new Dictionary<string, ICollection<SpecificCharacter>>();
foreach (var team in teams)
{
var teamCharacters = (ICollection<SpecificCharacter>)team.Select(x => new SpecificCharacter(x));
this.AllCharactersInTeams.Add("team", teamCharacters);
}
this.InteropPlugin = interopPlugin;
this.ScriptHelper = scriptHelper;
this.RandomHelper = randomHelper;
}
开发者ID:IdleLands,项目名称:IdleLandsRedux,代码行数:34,代码来源:Battle.cs
示例15: PluginInfo
internal PluginInfo(IPlugin plugin, string description, string pluginRoot, Assembly assembly)
{
Plugin = plugin;
Description = description;
PluginRoot = pluginRoot;
Assembly = assembly;
}
开发者ID:genusP,项目名称:AspNet5-Modularity,代码行数:7,代码来源:PluginInfo.cs
示例16: PluginCommunicationResponse
public PluginCommunicationResponse(IPlugin responder, string result,
object responseData = null)
{
Plugin = responder;
Result = result;
ResponseData = responseData;
}
开发者ID:mythsya,项目名称:db-plugins,代码行数:7,代码来源:IPluginCommunicator.cs
示例17: DomainFacade
private DomainFacade(IPlugin pPlugin)
{
cPlugin = pPlugin;
cInfrastructure = InfrastructureFacade.getInstance(pPlugin);
cRecordList = new List<Session.Config.Session>();
cObserverList = new List<IObserver>();
}
开发者ID:vaginessa,项目名称:Simsang,代码行数:7,代码来源:DomainFacade.cs
示例18: getInstance
/// <summary>
/// Create single instance
/// </summary>
/// <param name="pWebServerConfig"></param>
/// <returns></returns>
public static TaskFacade getInstance(WebServerConfig pWebServerConfig, IPlugin pPlugin)
{
if (cInstance == null)
cInstance = new TaskFacade(pWebServerConfig, pPlugin);
return (cInstance);
}
开发者ID:vaginessa,项目名称:Simsang,代码行数:12,代码来源:TaskFacade.cs
示例19: getInstance
/// <summary>
/// Create single instance
/// </summary>
/// <param name="pFWConfig"></param>
/// <returns></returns>
public static DomainFacade getInstance(InjectionConfig pFWConfig, IPlugin pPlugin)
{
if (cInstance == null)
cInstance = new DomainFacade(pFWConfig, pPlugin);
return (cInstance);
}
开发者ID:vaginessa,项目名称:Simsang,代码行数:12,代码来源:DomainFacade.cs
示例20: getInstance
/// <summary>
/// Create single instance
/// </summary>
/// <param name="pFWConfig"></param>
/// <returns></returns>
public static TaskFacade getInstance(InjectionConfig pProxyConfig, IPlugin pPlugin)
{
if (cInstance == null)
cInstance = new TaskFacade(pProxyConfig, pPlugin);
return (cInstance);
}
开发者ID:vaginessa,项目名称:Simsang,代码行数:12,代码来源:TaskFacade.cs
注:本文中的IPlugin类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论