コード例 #1
0
        /**
         * Initializes the plugin
         */
        public void Initialize()
        {
            this.mainForm = this.pluginHost.MainForm;
            this.pluginUI = new PluginUI(this);
            System.Drawing.Image image = mainForm.GetSystemImage(117);

            /**
             *  Create panel
             */
            this.pluginUI.Tag  = "Snippets";
            this.pluginUI.Text = "Snippets";
            this.pluginPanel   = mainForm.CreateDockingPanel(this.pluginUI, this.pluginGuid, image, DockState.DockBottomAutoHide);

            /**
             *  Create menu item
             */
            CommandBarMenu ViewMenu = mainForm.GetCBMenu("ViewMenu");

            ViewMenu.Items.AddButton(image, "&Snippets Panel", new EventHandler(this.OpenPanel));
        }
コード例 #2
0
		public SnippetCreator(PluginUI pluginUI)
		{
			this.pluginUI = pluginUI;
			this.InitializeComponent();
		}
コード例 #3
0
ファイル: PluginMain.cs プロジェクト: heon21st/flashdevelop
		/**
		* Initializes the plugin
		*/
		public void Initialize()
		{
			this.mainForm = this.pluginHost.MainForm;
			this.pluginUI = new PluginUI(this);
			System.Drawing.Image image = mainForm.GetSystemImage(117);
			/**
			*  Create panel
			*/
			this.pluginUI.Tag = "Snippets";
			this.pluginUI.Text = "Snippets";
			this.pluginPanel = mainForm.CreateDockingPanel(this.pluginUI, this.pluginGuid, image, DockState.DockBottomAutoHide);
			/**
			*  Create menu item
			*/
			CommandBarMenu ViewMenu = mainForm.GetCBMenu("ViewMenu");
			ViewMenu.Items.AddButton(image, "&Snippets Panel", new EventHandler(this.OpenPanel));
		}
コード例 #4
0
 public SnippetCreator(PluginUI pluginUI)
 {
     this.pluginUI = pluginUI;
     this.InitializeComponent();
 }