示例#1
0
文件: Demo.cs 项目: ntut105650031/OS
        void triggerItem_OnTrigger(object sender, TaskScheduler.OnTriggerEventArgs e)
        {
            String nextTrigger = String.Empty;

            if (e.Item.GetNextTriggerDateTime() != DateTime.MaxValue)
            {
                nextTrigger = e.Item.GetNextTriggerDateTime().DayOfWeek.ToString() + ", " + e.Item.GetNextTriggerDateTime().ToString();
            }
            else
            {
                nextTrigger = "Never";
            }
            textBoxEvents.AppendText(e.TriggerDate.ToString() + ": " + e.Item.Tag + ", next trigger: " + nextTrigger + "\r\n");
            UpdateTaskList();
        }
示例#2
0
 private void triggerItem_OnTrigger(Object sender, TaskScheduler.OnTriggerEventArgs e)
 {
 }