static void props_UpdateTabVisibility(object sender, object e) { WizardPropsBinding props = e as WizardPropsBinding; TimeSeriesLayer layer = props.Data as TimeSeriesLayer; switch (layer.CoordinatesType) { case TimeSeriesLayer.CoordinatesTypes.Spherical: props.UpdateVisible(typeof(DataWizardCoordinates), true); props.UpdateVisible(typeof(DataWizardCartesian), false); props.UpdateVisible(typeof(DataWizardOrbits), false); break; case TimeSeriesLayer.CoordinatesTypes.Rectangular: props.UpdateVisible(typeof(DataWizardCoordinates), false); props.UpdateVisible(typeof(DataWizardCartesian), true); props.UpdateVisible(typeof(DataWizardOrbits), false); break; case TimeSeriesLayer.CoordinatesTypes.Orbital: props.UpdateVisible(typeof(DataWizardCoordinates), false); props.UpdateVisible(typeof(DataWizardCartesian), false); props.UpdateVisible(typeof(DataWizardOrbits), true); break; default: break; } }
static void props_UpdateTabVisibility(object sender, object e) { WizardPropsBinding props = e as WizardPropsBinding; ReferenceFrame frame = props.Data as ReferenceFrame; switch (frame.ReferenceFrameType) { case ReferenceFrameTypes.FixedSherical: props.UpdateVisible(typeof(FrameWizardPosition), true); props.UpdateVisible(typeof(FrameWizardTrajectory), false); props.UpdateVisible(typeof(FrameWizardOrbital), false); break; //case ReferenceFrameTypes.FixedRectangular: // props.UpdateVisible(typeof(FrameWizardPosition), false); // props.UpdateVisible(typeof(FrameWizardCartisian), true); // props.UpdateVisible(typeof(FrameWizardOrbital), false); // break; case ReferenceFrameTypes.Orbital: props.UpdateVisible(typeof(FrameWizardPosition), false); props.UpdateVisible(typeof(FrameWizardTrajectory), false); props.UpdateVisible(typeof(FrameWizardOrbital), true); break; case ReferenceFrameTypes.Trajectory: props.UpdateVisible(typeof(FrameWizardPosition), false); props.UpdateVisible(typeof(FrameWizardTrajectory), true); props.UpdateVisible(typeof(FrameWizardOrbital), false); break; default: break; } }
static public DialogResult ShowWizard(TimeSeriesLayer layer) { WizardPropsBinding props = GetPropsObject(); props.Data = layer; props.UpdateTabVisibility += new UpdateTabDelegate(props_UpdateTabVisibility); WizardShell shell = new WizardShell(props); return(shell.ShowDialog()); }
static public DialogResult ShowWizard(ReferenceFrame frame) { WizardPropsBinding props = GetPropsObject(); props.Data = frame; props.UpdateTabVisibility += new UpdateTabDelegate(props_UpdateTabVisibility); WizardShell shell = new WizardShell(props); return(shell.ShowDialog()); }
private static WizardPropsBinding GetPropsObject() { WizardPropsBinding props; props = new WizardPropsBinding(); props.WizardName = Language.GetLocalizedText(926, "Reference Frame"); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(918, "Welcome"), typeof(FrameWizardWelcome), true, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(928, "General Options"), typeof(FrameWizardMain), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(FrameWizardPosition), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(927, "Trajectory"), typeof(FrameWizardTrajectory), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(FrameWizardOrbital), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(929, "Your Reference Frame is Complete"), typeof(FrameWizardFinal), true, true)); return props; }
private static WizardPropsBinding GetPropsObject() { WizardPropsBinding props; props = new WizardPropsBinding(); props.WizardName = Language.GetLocalizedText(926, "Reference Frame"); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(918, "Welcome"), typeof(FrameWizardWelcome), true, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(928, "General Options"), typeof(FrameWizardMain), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(FrameWizardPosition), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(927, "Trajectory"), typeof(FrameWizardTrajectory), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(FrameWizardOrbital), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(929, "Your Reference Frame is Complete"), typeof(FrameWizardFinal), true, true)); return(props); }
private static WizardPropsBinding GetPropsObject() { WizardPropsBinding props; props = new WizardPropsBinding(); props.WizardName = Language.GetLocalizedText(917, "Data Visualization Layer"); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(918, "Welcome"), typeof(DataWizardWelcome), true, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(DataWizardCoordinates), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(DataWizardCartesian), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(DataWizardOrbits), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(920, "Scale"), typeof(DataWizardSize), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(921, "Markers"), typeof(DataWizardMarkers), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(922, "Color Map"), typeof(DataWizardColorMap), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(923, "Date Time"), typeof(DataWizardDateTime), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(924, "Hover Text"), typeof(DataWizardInfoPopup), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(925, "Your data is ready to view"), typeof(DataWizardFinal), true, true)); return props; }
private static WizardPropsBinding GetPropsObject() { WizardPropsBinding props; props = new WizardPropsBinding(); props.WizardName = Language.GetLocalizedText(917, "Data Visualization Layer"); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(918, "Welcome"), typeof(DataWizardWelcome), true, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(DataWizardCoordinates), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(DataWizardCartesian), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(919, "Position"), typeof(DataWizardOrbits), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(920, "Scale"), typeof(DataWizardSize), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(921, "Markers"), typeof(DataWizardMarkers), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(922, "Color Map"), typeof(DataWizardColorMap), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(923, "Date Time"), typeof(DataWizardDateTime), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(924, "Hover Text"), typeof(DataWizardInfoPopup), false, true)); props.Pages.Add(new WizPropPageElement(Language.GetLocalizedText(925, "Your data is ready to view"), typeof(DataWizardFinal), true, true)); return(props); }
public WizardShell(WizardPropsBinding target) { this.target = target; InitializeComponent(); SetUiStrings(); }