Beispiel #1
0
 private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (
         MessageBox.Show(this, "Do you want to log out of the system?", "Logout", MessageBoxButtons.OKCancel,
                         MessageBoxIcon.Question) == DialogResult.OK)
     {
         Hide();
         _log.Log(l_empno.Text, 'O');
         var login = new POSLogin();
         login.Show();
     }
 }
Beispiel #2
0
 private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (
         MessageBox.Show(this, "Do you want to log out of the system?", "Logout", MessageBoxButtons.OKCancel,
                         MessageBoxIcon.Question) == DialogResult.OK) {
         Hide();
         _log.Log(l_empno.Text, 'O');
         var login = new POSLogin();
         login.Show();
     }
 }