private void FetchSettingsBtn_Click(object sender, RoutedEventArgs e) { DashboardAutoFetchState state = AutoFetchManager.OpenDashboardAutoFetchConfigWindow(DashboardState.AutoFetchState); if (state != null) { UpdateDashboardAutoFetchState(state); } }
public DashboardAutoFetchState Clone() { DashboardAutoFetchState state = new DashboardAutoFetchState { SchedulerState = SchedulerState.Clone(), IsDominatingSchedule = IsDominatingSchedule }; return(state); }
public DashboardAutoFetchState OpenDashboardAutoFetchConfigWindow(DashboardAutoFetchState state) { DashboardAutoFetchEditWindow editWindow = new DashboardAutoFetchEditWindow(state); editWindow.ShowDialog(); if (editWindow.DialogResult == true) { DashboardAutoFetchState newState = editWindow.DashboardAutoFetchState; return(newState); } return(null); }
public DashboardAutoFetchManager(Action <object, EventArgs> handler, DashboardAutoFetchState state) { Fetch_Timer_Tick = handler; DashboardAutoFetchState_ = state; DoInitialWireUp(); }
private void UpdateDashboardAutoFetchState(DashboardAutoFetchState state) { DashboardState.AutoFetchState = state; UpdateDashboardAutoFetchState(); }