本文整理汇总了C#中IPluginHost.Require方法的典型用法代码示例。如果您正苦于以下问题:C# IPluginHost.Require方法的具体用法?C# IPluginHost.Require怎么用?C# IPluginHost.Require使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPluginHost
的用法示例。
在下文中一共展示了IPluginHost.Require方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PluginForm
public PluginForm( IPluginHost pluginHost )
{
this.StickyWindow = new StickyWindow ( this );
this.StickyWindow.StickToOther = true;
this.StickyWindow.StickOnResize = true;
this.StickyWindow.StickOnMove = true;
PluginHost = pluginHost.Require ( );
ToolStripManager.Renderer = new VisualStudio2012Renderer ( );
}
示例2: ScreenShotForm
/// <summary>
/// Initializes a new instance of the <see cref="ScreenShotForm"/> class.
/// </summary>
public ScreenShotForm( IPluginHost pluginHost )
: base(pluginHost)
{
this.PluginHost = pluginHost.Require ( );
InitializeComponent ( );
//this.StickyWindow = new StickyWindow ( this );
// set up the toolbar icons from the Resources project
saveToolStripButton.Image = Resources.Images.saveHS;
copyToolStripButton.Image = Resources.Images.Copy_6524;
openInDefault.Image = Resources.Images.resource_16xLG;
refreshToolStripButton.Image = Resources.Images.Refresh;
PLModeToolStripButton.Image = Resources.Images.PortraitLandscapeHS;
ResizeFromImage ( null );
RefreshImage ( );
}
示例3: PortManagerForm
public PortManagerForm( IPluginHost host )
{
PluginHost = host.Require ( );
InitializeComponent ( );
RootForward = new TreeNode ( "Forwards" );
RootReverse = new TreeNode ( "Reverses" );
forwardAdd.Image = Resources.Images.forward_add;
forwardDelete.Image = Resources.Images.forward_delete;
reverseAdd.Image = Resources.Images.reverse_add;
reverseDelete.Image = Resources.Images.reverse_delete;
this.treeView1.Nodes.Add ( RootForward );
this.treeView1.Nodes.Add ( RootReverse );
PluginHost.CommandRunner.ReverseList ( );
PluginHost.CommandRunner.ForwardList ( );
}