public bool IsActive(double ts) { bool redletter = SimulationTime.IsRedLetterDay(ts); if (ExludeRedLetterDays && redletter) { return(false); } if (RedLetterDays && redletter) { return(true); } return(Weekdays.IsChecked(SimulationTime.GetDayOfWeek(ts))); }
public void UpdateTimePropterties() { Day = SimulationTime.GetDayOfWeek(0); TimestampOfDay = SimulationTime.GetTimestampForDay(0); }