change - 系统退出确认提示框

master
wenjy 1 month ago
parent 60b79724b3
commit be328d0ff2

@ -122,8 +122,14 @@ namespace SlnMesnac.WPF.ViewModel
{
// 关闭当前窗口
case "Exit":
//Environment.Exit(0);
//Application.Current.Shutdown();
MessageBoxResult result = MessageBox.Show("确定要退出程序吗?", "退出确认", MessageBoxButton.YesNo, MessageBoxImage.Question);
// 根据用户的选择决定是否退出程序
if (result == MessageBoxResult.Yes)
{
Application.Current.Shutdown();
}
break;
case "Generate":

Loading…
Cancel
Save