Example #1
0
        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;
            }
        }
        public static DialogResult ShowPropertiesSheet(TimeSeriesLayer layer)
        {
            var props = GetPropsObject();
            props.Data = layer;

            var shell = new PropsShell(props);
            props.UpdateTabVisibility += props_UpdateTabVisibility;

            return shell.ShowDialog();
        }
        public static DialogResult ShowPropertiesSheet(TimeSeriesLayer layer)
        {
            WizardPropsBinding props = GetPropsObject();
            props.Data = layer;

            PropsShell shell = new PropsShell(props);
            props.UpdateTabVisibility += new UpdateTabDelegate(props_UpdateTabVisibility);

            return shell.ShowDialog();
        }
Example #4
0
        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());
        }
 public override void SetData(object data)
 {
     layer = data as TimeSeriesLayer;
 }
Example #6
0
 public override void SetData(object data)
 {
     layer = data as TimeSeriesLayer;
 }