void setWakeUp()
 {
     if (wakeupIndex == wakeupOn)
     {
         WakeUP.SetWakeUpTime(WakeupTime);
     }
 }
예제 #2
0
        public static void SetWakeUpTime(DateTime time)
        {
            wakeUp = new WakeUP();

            bgWorker.DoWork             += new DoWorkEventHandler(bgWorker_DoWork);
            bgWorker.RunWorkerCompleted +=
                new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted);
            Woken += WakeUP_Woken;
            bgWorker.RunWorkerAsync(time.ToFileTime());
        }