/** * 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(); }