예제 #1
0
 public void DoorOpened()
 {
     if (CurrentDoorState == false)
     {
         _door.Closed();
         _alarm.RaiseAlarm();
     }
     else if (CurrentDoorState == true)
     {
         _door.Closed();
         CurrentDoorState = false;
     }
 }