Esempio n. 1
0
 public Timer(long interval, int count, TimerRunHandler runHandler = null, TimerOverHandler overHandler = null, string id = "", System.Object param = null)
 {
     if (interval <= 0)
     {
         throw new System.Exception("interval <= 0");
     }
     mInterval    = interval;
     mTotalCount  = count;
     mRunHandler  = runHandler;
     mOverHandler = overHandler;
     mId          = id;
     mParam       = param;
 }
Esempio n. 2
0
 public void setOverHandler(TimerOverHandler overHandler)
 {
     mOverHandler = overHandler;
 }