public bool Login(string username, string password, string loginDate, string key)
        {
            try
            {
                LoginValidation lv   = new LoginValidation();
                DateTime        date = DateTime.Parse(loginDate);
                lv.ParameterValidation(username, password, date, key);
                lv.LoginDateValidation(username, date);
                lv.KeyValidation(username, password, date, key);
                lv.Login(username, password, date);

                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
 private void SubmitExecute()
 {
     lv.Login(main.usernameBox.Text, main.passwordBox.Password, main);
 }
 private void SubmitExecute()
 {
     lv.Login(userName, password, main);
 }
 private void SubmitExecute()
 {
     lv.Login(view.usernameBox.Text, view.passwordBox.Password, view);
     view.passwordBox.Clear();
 }
Example #5
0
 private void SubmitExecute()
 {
     lv.Login(login.usernameBox.Text, login.passwordBox.Password, login);
     login.passwordBox.Clear();
 }