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; }
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 }
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 } }