コード例 #1
0
        private void addJobToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddJobForm form = new AddJobForm();

            form.ShowDialog();
            if (form.JobDetail != null && form.Trigger != null)
            {
                QuartzScheduler scheduler = getSelectedScheduler();
                scheduler.GetScheduler().ScheduleJob(form.JobDetail, form.Trigger);
                loadJobGroups(scheduler);
            }
        }
コード例 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            TriggerNode     node      = (TriggerNode)jobGroupsTreeView.SelectedNode;
            QuartzScheduler scheduler = getScheduler(node);
            AddJobForm      form      = new AddJobForm(node);

            form.ShowDialog();
            if (form.JobDetail != null && form.Trigger != null)
            {
                scheduler.GetScheduler().RescheduleJob(node.Trigger.Key, form.Trigger);
                loadJobGroups(scheduler);
            }
        }
コード例 #3
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     TriggerNode node = (TriggerNode)jobGroupsTreeView.SelectedNode;
     QuartzScheduler scheduler = getScheduler(node);
     AddJobForm form = new AddJobForm(node);
     form.ShowDialog();
     if (form.JobDetail != null && form.Trigger != null)
     {
         scheduler.GetScheduler().RescheduleJob(node.Trigger.Key, form.Trigger);
         loadJobGroups(scheduler);
     }
 }
コード例 #4
0
 private void addJobToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddJobForm form = new AddJobForm();
     form.ShowDialog();
     if (form.JobDetail != null && form.Trigger != null)
     {
         QuartzScheduler scheduler = getSelectedScheduler();
         scheduler.GetScheduler().ScheduleJob(form.JobDetail, form.Trigger);
         loadJobGroups(scheduler);
     }
 }