示例#1
0
        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();
        }
示例#2
0
        private void DataJobsBtn_OnClick(object sender, RoutedEventArgs e)
        {
            var window = new ScheduledJobsWindow(new ViewModels.SchedulerViewModel(_scheduler, DialogCoordinator.Instance));

            window.Show();
        }
示例#3
0
        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();
        }
示例#4
0
        private void DataJobsBtn_OnClick(object sender, RoutedEventArgs e)
        {
            var window = new ScheduledJobsWindow(_client);

            window.Show();
        }
示例#5
0
 private void DataJobsBtn_OnClick(object sender, RoutedEventArgs e)
 {
     var window = new ScheduledJobsWindow(new ViewModels.SchedulerViewModel(_scheduler, DialogCoordinator.Instance));
     window.Show();
 }