public static RoomController GetInstance()
 {
     if (_instance == null)
     {
         _instance = new RoomController();
     }
     return(_instance);
 }
Пример #2
0
 public void deleteEquipment(Equipment equipment)
 {
     _equipmentService.deleteEquipment(equipment);
     RoomController.GetInstance().RemoveEquipmentFromRooms(equipment);
 }
Пример #3
0
 public void addNewEquipment(Equipment equipment)
 {
     _equipmentService.addNewEquipment(equipment);
     RoomController.GetInstance().GetMagacine().EquipmentInRoom.Equipment.Add(equipment.Id, equipment.Quantity);
 }