public MeasuredDirectGeodInput(MapWindow mw, DirectGeodTaskControl gc)
        {
            InitializeComponent();

            mainWindow  = mw;
            geodControl = gc;
        }
        private void EnableDirectGeodDifference(object sender, MouseButtonEventArgs e)
        {
            (mapWindow.currentMode as IDisposable).Dispose();
            DirectGeodTask.DirectGeodTaskControl control = new DirectGeodTask.DirectGeodTaskControl(mapWindow);
            mapWindow.currentMode = control;
            mapWindow.CurrentModeControl.Navigate(control);

            Close();
        }