示例#1
0
        private void TsStartBtn_Click(object sender, EventArgs e)
        {
            tsStartBtn.Enabled = false;

            JobDispatch._Scheduler.Start();

            JobDispatch.Start(JobDispatch.AlarmCrewJob, 3);        //三秒检查一次
            JobDispatch.Start(JobDispatch.AlarmVariableBitJob, 3); //三秒检查一次

            JobDispatch.Start(JobDispatch.SMSSendJob, 1);          //一秒检查一次

            tsStopBtn.Enabled = true;
        }