From 1f98d758f0ca4b367f198feb0f07501938462f46 Mon Sep 17 00:00:00 2001 From: micahh Date: Sat, 23 Jan 2021 23:13:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AA=97=E4=BD=93=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SoftwarePack/Close.xaml.cs | 2 +- SoftwarePack/MainWindow.xaml | 4 ++-- SoftwarePack/MainWindow.xaml.cs | 31 +++++++++++++++++++++++-------- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/SoftwarePack/Close.xaml.cs b/SoftwarePack/Close.xaml.cs index 3b0d98b..37aff96 100644 --- a/SoftwarePack/Close.xaml.cs +++ b/SoftwarePack/Close.xaml.cs @@ -24,7 +24,7 @@ private void image_min_MouseUp(object sender, MouseButtonEventArgs e) private void image_close_MouseUp(object sender, MouseButtonEventArgs e) { Window win = Window.GetWindow(this); - if (MessageBoxX.Show("确认要退出吗?", "退出", Application.Current.MainWindow, MessageBoxButton.YesNo) == MessageBoxResult.Yes) + if (MessageBoxX.Show("确认要退出吗?", "退出", Application.Current.MainWindow, MessageBoxButton.OKCancel) == MessageBoxResult.OK) { Application.Current.Shutdown(-1); } diff --git a/SoftwarePack/MainWindow.xaml b/SoftwarePack/MainWindow.xaml index 3431609..2b48b6b 100644 --- a/SoftwarePack/MainWindow.xaml +++ b/SoftwarePack/MainWindow.xaml @@ -15,7 +15,7 @@ - +