/** * Initializes the plugin */ public void Initialize() { this.mainForm = this.pluginHost.MainForm; this.pluginUI = new PluginUI(this); System.Drawing.Image image = mainForm.GetSystemImage(81); /** * Create panel */ this.pluginUI.Tag = "Files"; this.pluginUI.Text = "File Explorer"; this.pluginPanel = mainForm.CreateDockingPanel(this.pluginUI, this.pluginGuid, image, DockState.DockRight); /** * Create menu item */ CommandBarMenu ViewMenu = mainForm.GetCBMenu("ViewMenu"); ViewMenu.Items.AddButton(image, "&File Explorer", new EventHandler(this.OpenPanel)); }
/// <summary> /// Creates a plugin panel for the plugin /// </summary> public void CreatePluginPanel() { this.pluginUI = new PluginUI(this); this.pluginUI.Text = TextHelper.GetString("Title.PluginPanel"); this.pluginPanel = PluginBase.MainForm.CreateDockablePanel(this.pluginUI, this.pluginGuid, this.pluginImage, DockState.DockRight); }