Beispiel #1
0
 private void btnLogOut_Click(object sender, EventArgs e)
 {
     try
     {
         //UserLoginModel.UserLoginInfo= new StaffModel();
         //Form1 frm = new Form1();
         //this.Hide();
         //frm.ShowDialog();
         frmDailogExit frm = new frmDailogExit();
         // frmOpacity.ShowDialog(this, frm);
         if (frmOpacity.ShowDialog(this, frm) == System.Windows.Forms.DialogResult.OK)
         {
             UserLoginModel.UserLoginInfo = new StaffModel();
             System.Diagnostics.Process.Start(Application.ExecutablePath);
             System.Diagnostics.Process.GetCurrentProcess().Kill();
         }
     }
     catch (Exception ex)
     {
         SystemLog.LogPOS.WriteLog("frmMain::::::::::::::::btnLogOut_Click:::::::::::::::::::" + ex.Message);
     }
 }
Beispiel #2
0
 private void btnLogOut_Click(object sender, EventArgs e)
 {
     try
     {
         //UserLoginModel.UserLoginInfo= new StaffModel();
         //Form1 frm = new Form1();
         //this.Hide();
         //frm.ShowDialog();
         frmDailogExit frm = new frmDailogExit();
         // frmOpacity.ShowDialog(this, frm);
         if (frmOpacity.ShowDialog(this, frm) == System.Windows.Forms.DialogResult.OK)
         {
             UserLoginModel.UserLoginInfo = new StaffModel();
             System.Diagnostics.Process.Start(Application.ExecutablePath);
             System.Diagnostics.Process.GetCurrentProcess().Kill();
         }
     }
     catch (Exception ex)
     {
         SystemLog.LogPOS.WriteLog("frmMain::::::::::::::::btnLogOut_Click:::::::::::::::::::" + ex.Message);
     }
 }