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); } }
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); } }