Esempio n. 1
0
 public static AddEquipmentToRoomWindow getInstance(Hashtable currentRoomEquipment, string equipmentType, string window)
 {
     if (instance == null)
     {
         instance = new AddEquipmentToRoomWindow(currentRoomEquipment, equipmentType, window);
     }
     return(instance);
 }
 private void addStaticButton_Click(object sender, RoutedEventArgs e)
 {
     AddEquipmentToRoomWindow.getInstance(roomEquipment, Constants.STATIC_EQUIPMENT, Constants.NEW_ROOM_WINDOW).Show();
 }
Esempio n. 3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     instance = null;
 }
 private void addDynamicButton_Click(object sender, RoutedEventArgs e)
 {
     AddEquipmentToRoomWindow.getInstance(roomEquipment, Constants.DYNAMIC_EQUIPMENT, Constants.EDIT_ROOM_WINDOW).Show();
 }