Esempio n. 1
0
 private void _KillNo()
 {
     a = new CloseProg(proclList);
     Thread.Sleep(2000);
     while (checkBox1.Checked)
     {
         a.CheckActive();
         Thread.Sleep(2000);
     }
 }
Esempio n. 2
0
        private void _KillTimer()
        {
            var time = DateTime.Now.Hour;

            time += timersetting.Hours;
            Thread.Sleep(5000);
            a = new CloseProg(proclList);
            while (time != DateTime.Now.Hour)
            {
                a.CheckActive();
                Thread.Sleep(5000);
            }

            checkBox1.Checked = false;
        }