public string this[string columnName] { get { string strErrorMsg = string.Empty; switch (columnName) { case "Id": { if (false == IDvalidator.Validate(this.m_strId)) { strErrorMsg = "Please input id of e-mail type."; } break; } case "Password": { if (false == PasswordValidator.Validate(this.m_strPassword)) { strErrorMsg = "Please Input your password."; } break; } default: break; } return(strErrorMsg); } }
private bool CanExecuteNextCommand() { bool bValidateID = IDvalidator.Validate(this.m_RequiredInfoModel.Id); bool bValidatePwd = PasswordValidator.Validate(this.m_RequiredInfoModel.Password); bool bValidateNickName = !string.IsNullOrEmpty(this.m_RequiredInfoModel.NickName); return(bValidateID && bValidatePwd && bValidateNickName); }
private bool CanExecuteLogin(UIElement loginButton) { this.m_Logger.Log("CanExecuteLogin Raised", Category.Info, Priority.None); bool bValidateID = IDvalidator.Validate(this.m_LoginModel.Id); bool bValidatePwd = PasswordValidator.Validate(this.m_LoginModel.Password); bool bIsBusy = true; if (null != this.m_BusyIndicator) { bIsBusy = this.m_BusyIndicator.IsBusy; } return(bValidateID && bValidatePwd && !bIsBusy); }
public string this[string columnName] { get { string strErrorMsg = string.Empty; switch (columnName) { case "Id": { if (false == IDvalidator.Validate(m_strId)) { strErrorMsg = "Please input your id.\nId should be a kind of e-mail.\nex) [email protected]"; } break; } case "Password": { if (false == PasswordValidator.Validate(m_strPassword)) { strErrorMsg = "Please input your password."; } break; } case "NickName": { if (string.IsNullOrEmpty(this.m_strNickName)) { strErrorMsg = "Please input your Nickname."; } break; } default: break; } return(strErrorMsg); } }