public void run() { for (; ;) { System.DateTime dt = System.DateTime.Now; if (dt.Second != this.second) { TimeChangeEventArgs timeChangeEventArgs = new TimeChangeEventArgs(dt.Hour, dt.Minute, dt.Second); if (OnSecondChange != null) { OnSecondChange(this, timeChangeEventArgs); } this.hour = dt.Hour; this.minuter = dt.Minute; this.second = dt.Second; } } }
public virtual void TimeHasChange(object o, TimeChangeEventArgs ages) { }