Exemple #1
0
 //Arm the timer.
 public void setTimer(int time, timerTypes ttyp, Control c)
 {
     tType            = ttyp;
     tStatus          = timerStatus.TSTATUS_ACTIVE;
     aqTimer.Interval = time;
     aqTimer.Enabled  = true;
     control          = c;
 }
Exemple #2
0
 public AqTimer(AquaSift aqsft)
 {
     aq            = aqsft;
     aqTimer       = new Timer();
     aqTimer.Tick += new EventHandler(OnTimedEvent);
     tStatus       = timerStatus.TSTATUS_IDLE;
     tType         = timerTypes.TIMER_NONE;
 }