private void ButtonEdit_Click(object sender, RoutedEventArgs e) { if (list1.SelectedIndex != -1) { NeworEditDetector nec = new NeworEditDetector(this, false); nec.Show(); } }
private void ButtonNew_Click(object sender, RoutedEventArgs e) { NeworEditDetector nec = new NeworEditDetector(this, true); nec.Show(); }