private void button1_Click(object sender, EventArgs e)
        {
            theme       t      = (theme)cbTheme.SelectedItem;
            ThemeEditor editor = new ThemeEditor(db, t);

            editor.Show();
        }
예제 #2
0
        public void button_edittheme_Click(object sender, EventArgs e)
        {
            if (themeeditor == null)                    // no theme editor, make one..
            {
                themeeditor = new ThemeEditor();
                themeeditor.InitForm(_discoveryForm);
                themeeditor.FormClosing += close_edit;  // lets see when it closes

                comboBoxTheme.Enabled   = false;        // no doing this while theme editor is open
                buttonSaveTheme.Enabled = false;

                themeeditor.Show();                     // run form
            }
            else
            {
                themeeditor.BringToFront();             // its up, make it at front to show it
            }
        }
예제 #3
0
    public static void ShowEditor()
    {
        ThemeEditor editor = GetWindow <ThemeEditor>();

        editor.Show();
    }