Exemple #1
0
        private void AddViewpointCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            EarthViewControl evc = e.Parameter as EarthViewControl;

            if (evc == null)
            {
                return;
            }

            oepViewpointsExtension oepve = null;

            foreach (var item in Project.CurrentMap.Extensions)
            {
                if (item is oepViewpointsExtension)
                {
                    oepve = (oepViewpointsExtension)item;
                    break;
                }
            }
            if (oepve == null)
            {
                oepve = new oepViewpointsExtension();
                Project.CurrentMap.Extensions.Add(oepve);
            }
            oepViewpoint vp = evc.render.Viewpoint;

            vp.Name = "Viewpoint";
            oepve.ViewPoints.Add(vp);
            AddViewpointOptionsWindow w = new AddViewpointOptionsWindow()
            {
                DataContext = vp, Owner = System.Windows.Application.Current.MainWindow
            };

            w.ShowDialog();
        }
Exemple #2
0
        private void RecordPathCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            EarthViewControl evc = e.Parameter as EarthViewControl;

            if (evc == null)
            {
                return;
            }
            if (RecordScreenWindow.Single != null)
            {
                return;
            }
            RecordScreenWindow w = new RecordScreenWindow()
            {
                EarthViewCtrl = evc, Owner = System.Windows.Application.Current.MainWindow
            };

            w.Show();
        }
Exemple #3
0
        private void MesureDistanceCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            EarthViewControl evc = e.Parameter as EarthViewControl;

            if (evc == null)
            {
                return;
            }

            if (MeasureDistanceWindow.Single != null)
            {
                return;
            }
            MeasureDistanceWindow w = new MeasureDistanceWindow()
            {
                EarthViewCtrl = evc, Owner = System.Windows.Application.Current.MainWindow
            };

            w.Show();
        }
Exemple #4
0
        private void AnalysisVisibleAreaCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            EarthViewControl evc = e.Parameter as EarthViewControl;

            if (evc == null)
            {
                return;
            }

            if (AnalysisVisibilityAreaWindow.Single != null)
            {
                return;
            }
            AnalysisVisibilityAreaWindow w = new AnalysisVisibilityAreaWindow()
            {
                EarthViewCtrl = evc, Owner = System.Windows.Application.Current.MainWindow
            };

            w.Show();
        }