Exemple #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;
 }
Exemple #2
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;
 }
Exemple #3
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
        }
Exemple #4
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
            }
        }