예제 #1
0
 private void editEquipmentMenuItem_Click(object sender, RoutedEventArgs e)
 {
     if (equipmentTable.equipmentTable.SelectedItem != null)
     {
         EditEquipment.getInstance((Equipment)this.equipmentTable.equipmentTable.SelectedItem).Show();
     }
     else
     {
         MessageBox.Show("Odaberite opremu iz opšteg prikaza opreme!", "Upozorenje", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
 public static EditEquipment getInstance(Equipment equipment)
 {
     if (instance == null)
         instance = new EditEquipment(equipment);
     return instance;
 }
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     instance = null;
 }