protected virtual void OnDayIntervalChanged(DayIntervalEventArgs e) { if (DayIntervalChanged != null) { DayIntervalChanged(this, e); } }
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); } }