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