private void ButtonAddClick(object sender, EventArgs e) { var form = new SettingsFormDetail(null); form.ShowDialog(); UpdateView(); }
void ListView1DoubleClick(object sender, EventArgs e) { // Safety check for bug #1484 bool selectionActive = listView1.SelectedItems.Count > 0; if(!selectionActive) { button_edit.Enabled = false; return; } string commando = listView1.SelectedItems[0].Tag as string; SettingsFormDetail form = new SettingsFormDetail(commando); form.ShowDialog(); UpdateView(); }
void ButtonAddClick(object sender, EventArgs e) { SettingsFormDetail form = new SettingsFormDetail(null); form.ShowDialog(); UpdateView(); }