コード例 #1
0
 private void btnAppExit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (!DxPublic.GetMessageBoxYesNoResult("是否退出登录?", this.Text))
     {
         return;
     }
     Application.ExitThread();
     Application.Exit();
 }
コード例 #2
0
 private void btnLogout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (!this.LoginedIn)
     {
         this.MainForm_Load(null, null);
         return;
     }
     if (!DxPublic.GetMessageBoxYesNoResult("是否注销系统?", this.Text))
     {
         return;
     }
     this.CloseAllWin();
     Global._Session.SessionIntial();
     this.Menu_Null();
     this.MainForm_Load(null, null);
     this.LoginedIn = false;
 }