Esempio n. 1
0
    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)));
    }
Esempio n. 2
0
 public void UpdateTimePropterties()
 {
     Day            = SimulationTime.GetDayOfWeek(0);
     TimestampOfDay = SimulationTime.GetTimestampForDay(0);
 }