Beispiel #1
0
        private void 设置时间间隔ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //设置计划任务
            if (OptScheduler.IsExists("ClockAlarmSchedule"))
            {
                OptScheduler.DeleteTask("ClockAlarmSchedule");
            }
            SetTimeForm f2 = new SetTimeForm();

            f2.Show();
        }
Beispiel #2
0
 private void 取消提醒ToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     //取消计划任务
     if (OptScheduler.IsExists("ClockAlarmSchedule"))
     {
         OptScheduler.DeleteTask("ClockAlarmSchedule");
         MessageBox.Show("已取消定时提醒任务!");
     }
     else
     {
         MessageBox.Show("未设置提醒任务!");
     }
 }