///////////////////////////////////////////////////////////////////////////////// public static void AddSnip() { frmAddSnippet window = ClientUtils.PrepareAddNewSnippetForm(PluginBase.Current) as frmAddSnippet; if (window == null) { return; } #if DOCKED OpenForm(window, ADDSNIP_MENU_LABEL, ID_ADD_SNIPPET_CMD); #else window.Show(); #endif }
private void SnippetInfo_MouseUp(object sender, MouseEventArgs e) { lock (this) { if (ManageMouseClickEvents) { m_selected = !m_selected; UpdateItemBackground(); } } frmAddSnippet window = ClientUtils.PrepareViewSnippetForm(PluginBase.Current, SnippetId) as frmAddSnippet; #if DOCKED PluginBase.OpenForm(window, PluginBase.VIEWSNIP_MENU_LABEL, PluginBase.ID_ADD_SNIPPET_CMD); #else window.Show(); #endif }