1 if (MessageBox.Show("是否退出系统?", "退出系统?", MessageBoxButton.OKCancel, MessageBoxImage.Question) == MessageBoxResult.OK) 2 { 3 this.Close(); 4 }
1 if (MessageBox.Show("是否退出系统?", "退出系统?", MessageBoxButton.OKCancel, MessageBoxImage.Question) == MessageBoxResult.OK) 2 { 3 this.Close(); 4 }
转载于:https://www.cnblogs.com/dotnetHui/p/7904876.html