private void FetchSettingsBtn_Click(object sender, RoutedEventArgs e)
        {
            DashboardAutoFetchState state = AutoFetchManager.OpenDashboardAutoFetchConfigWindow(DashboardState.AutoFetchState);

            if (state != null)
            {
                UpdateDashboardAutoFetchState(state);
            }
        }
Example #2
0
        public DashboardAutoFetchState Clone()
        {
            DashboardAutoFetchState state = new DashboardAutoFetchState
            {
                SchedulerState       = SchedulerState.Clone(),
                IsDominatingSchedule = IsDominatingSchedule
            };

            return(state);
        }
Example #3
0
        public DashboardAutoFetchState OpenDashboardAutoFetchConfigWindow(DashboardAutoFetchState state)
        {
            DashboardAutoFetchEditWindow editWindow = new DashboardAutoFetchEditWindow(state);

            editWindow.ShowDialog();
            if (editWindow.DialogResult == true)
            {
                DashboardAutoFetchState newState = editWindow.DashboardAutoFetchState;
                return(newState);
            }
            return(null);
        }
Example #4
0
 public DashboardAutoFetchManager(Action <object, EventArgs> handler, DashboardAutoFetchState state)
 {
     Fetch_Timer_Tick         = handler;
     DashboardAutoFetchState_ = state;
     DoInitialWireUp();
 }
 private void UpdateDashboardAutoFetchState(DashboardAutoFetchState state)
 {
     DashboardState.AutoFetchState = state;
     UpdateDashboardAutoFetchState();
 }