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