Exemple #1
0
 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;
         }
     }
 }
Exemple #2
0
 public virtual void TimeHasChange(object o, TimeChangeEventArgs ages)
 {
 }