private void changeTimelineType(Globals.TimelineType type) { try { if (ProjectFunctions.FullStageList == null || ProjectFunctions.FullStageList.Count() == 0) { return; } // Too early else if (type == Globals.SelectedTimelineType) { return; } // Cancelling the earlier change else if (checkForChanges()) { Globals.SelectedTimelineType = type; clearChanges(); refreshTimeData(); } else { setTimelineType(Globals.SelectedTimelineType); } } catch (Exception generalException) { MessageFunctions.Error("Error changing timeline type", generalException); } }
private void setTimelineType(Globals.TimelineType type) { switch (type) { case Globals.TimelineType.Actual: ActualRadio.IsChecked = true; break; case Globals.TimelineType.Effective: EffectiveRadio.IsChecked = true; break; case Globals.TimelineType.Target: TargetRadio.IsChecked = true; break; default: EffectiveRadio.IsChecked = true; break; } }
private void changeTimelineType(Globals.TimelineType type) { try { if (ProjectFunctions.FullStageList == null || ProjectFunctions.FullStageList.Count() == 0) { return; } // Too early else { Globals.SelectedTimelineType = type; refreshHistoryDataGrid(); } } catch (Exception generalException) { MessageFunctions.Error("Error changing timeline type", generalException); } }