diff --git a/GisDevelop_Exp/MainWindow.xaml b/GisDevelop_Exp/MainWindow.xaml index 490fc29..c80dab4 100644 --- a/GisDevelop_Exp/MainWindow.xaml +++ b/GisDevelop_Exp/MainWindow.xaml @@ -16,6 +16,7 @@ + @@ -31,7 +32,7 @@ - + diff --git a/GisDevelop_Exp/MainWindow.xaml.cs b/GisDevelop_Exp/MainWindow.xaml.cs index b729436..4f7b553 100644 --- a/GisDevelop_Exp/MainWindow.xaml.cs +++ b/GisDevelop_Exp/MainWindow.xaml.cs @@ -243,5 +243,14 @@ namespace GisDevelop_Exp Menu_Wrap_Around.Header = "开启漫游"; } } + + private void Menu_Exit_OnClick(object sender, RoutedEventArgs e) + { + if (System.Windows.MessageBox.Show("确定退出?", "退出程序", MessageBoxButton.OKCancel, MessageBoxImage.Question) == + MessageBoxResult.OK) + { + Application.Current.Shutdown(); + } + } } }