using _29WxOrderWpf.BaseWindows; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using Work.BaseForms; namespace _29WxOrderWpf.LoginWindows { /// /// LoginWindow.xaml 的交互逻辑 /// public partial class LoginWindow : BaseWindow { public LoginWindow() { InitializeComponent(); } private void BaseWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { //if (BaseMsgForm.ShowConfirm("是否关闭软件?\r\n必须登录账户才能使用,无账户请先注册一个", "请先登录或者注册").DialogResult == System.Windows.Forms.DialogResult.OK) // Process.GetCurrentProcess().Kill(); //else // e.Cancel = true; if (BaseMsgWindow.ShowConfirm(this, "是否关闭软件?\r\n必须登录账户才能使用,无账户请先注册一个", "请先登录或者注册").DialogResult == true) Process.GetCurrentProcess().Kill(); else e.Cancel = true; } } }