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