예제 #1
0
 protected virtual void OnDayIntervalChanged(DayIntervalEventArgs e)
 {
     if (DayIntervalChanged != null)
     {
         DayIntervalChanged(this, e);
     }
 }
예제 #2
0
 public void SetDayInterval(int intervalMs)
 {
     if (intervalMs > 0 && intervalMs != _dayInterval)
     {
         DayIntervalEventArgs e = new DayIntervalEventArgs()
         {
             OldInterval = _dayInterval, NewInterval = intervalMs
         };
         DateTime now = Now;
         _year        = Now.Year;
         _month       = Now.Month;
         _day         = Now.Day;
         _dayInterval = intervalMs;
         OnDayIntervalChanged(e);
     }
 }