private void DataJobsBtn_OnClick(object sender, RoutedEventArgs e) { var window = new ScheduledJobsWindow(); window.ShowDialog(); //clear and re-schedule all jobs, allowing any existing jobs to finish first. _scheduler.PauseAll(); using (var entityContext = new MyDBContext()) { JobsManager.ScheduleJobs(_scheduler, entityContext.DataUpdateJobs.Include(t => t.Instrument).Include(t => t.Tag).ToList()); } var alljobs = _scheduler.GetTriggerKeys(GroupMatcher <TriggerKey> .AnyGroup()); _scheduler.ResumeAll(); }
private void DataJobsBtn_OnClick(object sender, RoutedEventArgs e) { var window = new ScheduledJobsWindow(new ViewModels.SchedulerViewModel(_scheduler, DialogCoordinator.Instance)); window.Show(); }
private void DataJobsBtn_OnClick(object sender, RoutedEventArgs e) { var window = new ScheduledJobsWindow(); window.ShowDialog(); //clear and re-schedule all jobs, allowing any existing jobs to finish first. _scheduler.PauseAll(); using (var entityContext = new MyDBContext()) { JobsManager.ScheduleJobs(_scheduler, entityContext.DataUpdateJobs.Include(t => t.Instrument).Include(t => t.Tag).ToList()); } var alljobs = _scheduler.GetTriggerKeys(GroupMatcher<TriggerKey>.AnyGroup()); _scheduler.ResumeAll(); }
private void DataJobsBtn_OnClick(object sender, RoutedEventArgs e) { var window = new ScheduledJobsWindow(_client); window.Show(); }