Exemple #1
0
 public void CallTheElevator()
 {
     Status = "Called the elevator";
     if (DataBase.CurrentId == Id)
     {
         UpdateStatus?.Invoke(Status);
     }
     UpdateElevatorList?.Invoke(BirthdayFloor, Status);
 }
Exemple #2
0
 private void ChooseFloor()
 {
     Status = "Chose floor";
     if (DataBase.CurrentId == Id)
     {
         UpdateStatus?.Invoke(Status);
     }
     Thread.Sleep(2000);
     UpdateElevatorList?.Invoke(DestinationFloor, Status);
 }