Пример #1
0
 // Action when somebody from queue starts brewing coffe
 public void pushStartButton(int seconds)
 {
     if (!isServingMode && dict.Count > 0)
     {
         isServingMode = true;
         eventsTimeline.postEventToTimeline(seconds + coffeBrewingTime, pourTheCoffe);
     }
 }
Пример #2
0
 // Action when user become regular busy mode. At the beginning of work or after superbusy mode
 public String doBecomeNotBusyMode(int seconds)
 {
     isSuperBusyMode = false;
     eventsTimeline.postEventToTimeline(seconds + inNotBusyModeTime(), doBecomeSuperBusyMode);
     return(String.Format("Employee {0} has entered to not busy mode at time {1}", employeeName, seconds));
 }