public void DoorOpened() { if (CurrentDoorState == false) { _door.Closed(); _alarm.RaiseAlarm(); } else if (CurrentDoorState == true) { _door.Closed(); CurrentDoorState = false; } }
public void DoorOpened() { if (CurrentDoorState == false) { _door.Closed(); _alarm.RaiseAlarm(); } else if (CurrentDoorState == true) { _door.Closed(); CurrentDoorState = false; } }