//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; }
public AqTimer(AquaSift aqsft) { aq = aqsft; aqTimer = new Timer(); aqTimer.Tick += new EventHandler(OnTimedEvent); tStatus = timerStatus.TSTATUS_IDLE; tType = timerTypes.TIMER_NONE; }