/// <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; } }
/// <summary> /// Method calls login view /// </summary> public void ValidateLogin() { var registerView = new AccountControlView().Login(this); ValidationMessage = registerView.ValidationMessage; }