Example #1
0
 public void MoveOneDay()
 {
     DayOfWeek++;
     if (DayOfWeek == 8)
     {
         DayOfWeek = 1;
     }
     if (DayOfWeek != 6 && DayOfWeek != 7)
     {
         NewDay?.Invoke(this, null);
     }
 }
Example #2
0
 private static void OnNewDay(SimulationHandler sender)
 {
     NewDay?.Invoke(sender, EventArgs.Empty);
 }
Example #3
0
 protected virtual void OnNewDay()
 {
     NewDay?.Invoke(this, EventArgs.Empty);
 }