Beispiel #1
0
 private void CreateTimerClick(object sender, EventArgs e)
 {
     if (TimersTester.CreateTimer())
     {
         MessageBox.Show("Created successfully", "New wake timer", MessageBoxButtons.OK);
     }
     else
     {
         MessageBox.Show("Could not create wake timer", "New wake timer", MessageBoxButtons.OK);
     }
 }
Beispiel #2
0
 private void TestSupportClick(object sender, EventArgs e)
 {
     if (TimersTester.TimersSupported())
     {
         MessageBox.Show("Wake timers are supported by this system", "Wake timers support", MessageBoxButtons.OK);
     }
     else
     {
         MessageBox.Show("Wake timers are NOT supported by this system", "Wake timers support", MessageBoxButtons.OK);
     }
 }