当前位置: 首页>>代码示例>>C#>>正文


C# IPluginHost.Require方法代码示例

本文整理汇总了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 ( );
        }
开发者ID:camalot,项目名称:droidexplorer,代码行数:10,代码来源:PluginForm.cs

示例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 ( );
        }
开发者ID:camalot,项目名称:droidexplorer,代码行数:20,代码来源:ScreenShotForm.cs

示例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 ( );
        }
开发者ID:camalot,项目名称:droidexplorer,代码行数:18,代码来源:PortManagerForm.cs


注:本文中的IPluginHost.Require方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。