Beispiel #1
0
 private void b_new_Click(object sender, RoutedEventArgs e)
 {
     b_new.IsEnabled            = false;
     b_editselected.IsEnabled   = false;
     b_deleteselected.IsEnabled = false;
     changeStation = new ChangeStationWindow(this);
     changeStation.ShowDialog();
 }
Beispiel #2
0
 private void b_editselected_Click(object sender, RoutedEventArgs e)
 {
     if (lv_lista.SelectedItem != null)
     {
         b_new.IsEnabled            = false;
         b_editselected.IsEnabled   = false;
         b_deleteselected.IsEnabled = false;
         changeStation = new ChangeStationWindow(this, (StationObject)lv_lista.SelectedItem);
         changeStation.ShowDialog();
     }
     else
     {
         MessageBox.Show("Nothing selected.", "Error!", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }