Example #1
0
        public void LoginCommandMethod(object password)
        {
            PasswordBox   pb     = (PasswordBox)password;
            bool          valid  = false;
            ManageAccount manage = new ManageAccount();

            valid = manage.CheckUserValidation(Username, pb.Password);
            if (valid)
            {
                User user = new User(Username);
                caller.CreateMainWindow(user);
            }
            else
            {
                MessageBox.Show("Username or password are not valid");
            }
        }