コード例 #1
0
        // time range for the day
        public IntervalSchedule( string schid, DateTime startTime, int secs,
                    TimeSpan fromTime, TimeSpan toTime, ScheduleJob[] jobs, bool IsPrimary)
            : base(schid, startTime, ScheduleType.INTERVAL, jobs, IsPrimary)
        {
            m_fromTime = fromTime;

            m_toTime = toTime;
            Interval = secs;
        }
コード例 #2
0
ファイル: Schedule.cs プロジェクト: ufjl0683/LedControlPanel
 public Schedule(string schid, DateTime startTime, ScheduleType type, int duationMin, ScheduleJob[] jobs, bool IsPrimary)
 {
     StartTime = startTime;
     m_nextTime = startTime;
     m_type = type;
     m_schid = schid;
     m_durationMin = duationMin;
     this.jobs = jobs;
     this.IsPrimary = IsPrimary;
     foreach (ScheduleJob job in jobs)
         job.setSchedule(this);
 }
コード例 #3
0
 public MonthlySchedule(string schid, DateTime startTime, ScheduleJob[] jobs,bool IsPrimary)
     : base(schid, startTime, ScheduleType.MONTHLY, jobs, IsPrimary)
 {
 }
コード例 #4
0
 public WeeklySchedule(string schid, DateTime startTime, ScheduleJob[] jobs, bool IsPrimary)
     : base(schid, startTime, ScheduleType.WEEKLY, jobs, IsPrimary)
 {
 }
コード例 #5
0
 public DailySchedule(string schid, DateTime startTime, int durationMin, ScheduleJob[] jobs, bool IsPrimary)
     : base(schid, startTime, ScheduleType.DAILY, durationMin, jobs, IsPrimary)
 {
 }
コード例 #6
0
 public OneTimeSchedule(string schid, DateTime startTime, int durMin, ScheduleJob[] jobs, bool IsPrimary)
     : base(schid, startTime, ScheduleType.ONETIME, jobs, IsPrimary)
 {
     //this.durMin = durMin;
     this.m_durationMin = durMin;
 }
コード例 #7
0
 //  public int durMin;
 public OneTimeSchedule( string schid, DateTime startTime, ScheduleJob[] jobs,bool IsPrimary)
     : this(schid, startTime, 0, jobs, IsPrimary)
 {
 }