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

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

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