Esempio n. 1
0
 private void b_new_Click(object sender, RoutedEventArgs e)
 {
     b_new.IsEnabled            = false;
     b_editselected.IsEnabled   = false;
     b_deleteselected.IsEnabled = false;
     changeBooking = new ChangeBookingWindow(this);
     changeBooking.ShowDialog();
 }
Esempio n. 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;
         changeBooking = new ChangeBookingWindow(this, (BookingObject)lv_lista.SelectedItem);
         changeBooking.ShowDialog();
     }
     else
     {
         MessageBox.Show("Nothing selected.", "Error!", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }