Exemplo n.º 1
0
 private void Logout()
 {
     user = null;
     EnableControls();
 }
Exemplo n.º 2
0
        private void Login()
        {
            LoginWindow win = new LoginWindow();
            win.ShowDialog();
            string name = win.txtName.Text;
            string password = win.txtPassword.Password;
            win.Close();

            user = data.AuthorizeUser(name, password);
            EnableControls();
        }