Exemple #1
0
 private ObservedCommand GetExportSelectedFeaturesCommand()
 {
     return(new ObservedCommand(() =>
     {
         ExportWizardWindow window = new ExportWizardWindow(ExportMode.ExportSelectedFeatures, GisEditor.SelectionManager.GetSelectionOverlay());
         if (window.ShowDialog().Value)
         {
             RunTask(window);
         }
     }, () => GisEditor.ActiveMap != null));
 }
Exemple #2
0
        private ObservedCommand GetExportMeasuredFeaturesCommand()
        {
            return(new ObservedCommand(() =>
            {
                MeasureTrackInteractiveOverlay measurementOverlay = null;
                if (GisEditor.ActiveMap != null && GisEditor.ActiveMap.InteractiveOverlays.Contains("MeasurementOverlay"))
                {
                    measurementOverlay = GisEditor.ActiveMap.InteractiveOverlays["MeasurementOverlay"] as MeasureTrackInteractiveOverlay;
                }

                if (measurementOverlay != null)
                {
                    ExportWizardWindow window = new ExportWizardWindow(ExportMode.ExportMeasuredFeatures, measurementOverlay);
                    if (window.ShowDialog().Value)
                    {
                        RunTask(window);
                    }
                }
            }, () => GisEditor.ActiveMap != null));
        }