示例#1
0
 /// <summary>
 /// Method checks if the username and passwords are valid and calls register view
 /// </summary>
 public void ValidateRegistration()
 {
     if (ValidateUsername() && ValidationPassword())
     {
         var registerView = new AccountControlView().Register(this);
         ValidationMessage = registerView.ValidationMessage;
     }
 }
示例#2
0
        /// <summary>
        /// Method calls login view
        /// </summary>
        public void ValidateLogin()
        {
            var registerView = new AccountControlView().Login(this);

            ValidationMessage = registerView.ValidationMessage;
        }