示例#1
0
        private void logOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SecurityManager.SetUserLogin(SecurityManager.UserID, false);

            SecurityManager.LogOut();

            this.Close();
            Program.LoginForm.AskLogin();
        }
示例#2
0
 private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (SecurityManager.State == SecurityManager.enState.LogIn)
     {
         SecurityManager.SetUserLogin(SecurityManager.UserID, false);
         Application.Exit();
     }
     else
     {
         Program.LoginForm.AskLogin();
     }
 }
示例#3
0
 private void exitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SecurityManager.SetUserLogin(SecurityManager.UserID, false);
     Application.Exit();
 }