예제 #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
		/**
		* 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));
		}
 public SnippetCreator(PluginUI pluginUI)
 {
     this.pluginUI = pluginUI;
     this.InitializeComponent();
 }