Esempio n. 1
0
        /////////////////////////////////////////////////////////////////////////////////

        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
        }
Esempio n. 2
0
        private IManageSnippetForm CreateManageSnippetForm(bool viewSnip)
        {
            frmAddSnippet window = new frmAddSnippet();

            if (viewSnip)
            {
                window.Text = Resources.ViewSnippetWindowTitle;
            }
            else
            {
                window.Text = Resources.AddSnippetWindowTitle;
            }

            return(window);
        }
Esempio n. 3
0
        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
        }