Пример #1
0
        private void CreateMapWindow()
        {
            if (mapWindow == null)
            {
                mapButton.IsEnabled = false;

                mapWindow          = new MapWindow();
                mapWindow.Closing += new System.ComponentModel.CancelEventHandler(mapWindow_Closing);
                mapWindow.Show();

                // have some mapper on the mapping window, until it is replaced by real one.
                // we do it after "Show" to ensure that we override default mapper and that the Draw is enabled:
                setMapper(new MapperVicinity(), null);
            }
        }
Пример #2
0
 void mapWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     mapButton.IsEnabled = true;
     mapWindow           = null;
 }
Пример #3
0
 void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (mapWindow != null)
     {
         mapWindow.Close();
         mapWindow = null;
     }
 }
Пример #4
0
 void mapWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     mapButton.IsEnabled = true;
     mapWindow = null;
 }
Пример #5
0
        private void CreateMapWindow()
        {
            if (mapWindow == null)
            {
                mapButton.IsEnabled = false;

                mapWindow = new MapWindow();
                mapWindow.Closing += new System.ComponentModel.CancelEventHandler(mapWindow_Closing);
                mapWindow.Show();

                // have some mapper on the mapping window, until it is replaced by real one.
                // we do it after "Show" to ensure that we override default mapper and that the Draw is enabled:
                setMapper(new MapperVicinity(), null);
            }
        }