void Btn_NewModClick(object sender, EventArgs e) { if (modEditor == null) { modEditor = new ModEditor(ModList.GetNextID); modEditor.Show(); modEditor.BringToFront(); this.Enabled = false; ti_EditorWatch.Enabled = true; } }
void Btn_EditModClick(object sender, EventArgs e) { // check if item is selected befor starting some action if (lv_ModList.SelectedItems.Count > 0) { // search selected entry in modlist List // start modeditor with selected modlist List item modEditor = new ModEditor(lv_ModList.SelectedItems[0]); // start timer and disable form modEditor.Show(); modEditor.BringToFront(); this.Enabled = false; ti_EditorWatch.Enabled = true; } }