示例#1
0
 public void close_edit(object sender, FormClosingEventArgs e)
 {
     themeeditor = null;                         // called when editor closes
     SetEntryThemeComboBox();
     comboBoxTheme.Enabled   = true;             // no doing this while theme editor is open
     buttonSaveTheme.Enabled = true;
 }
示例#2
0
        public void button_edittheme_Click(object sender, EventArgs e)
        {
            if (themeeditor == null)                    // no theme editor, make one..
            {
                themeeditor = new ExtendedControls.ThemeStandardEditor();
                themeeditor.ApplyChanges = UpdateThemeChanges;
                themeeditor.InitForm();
                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
            }
        }