/// <summary> /// pre-revison of the username and password - connected with the errorporvider /// </summary> /// <returns>true = good / false = not acceptable</returns> public bool posiblyGoodUsernamePwdPair() { serviceLogin = new ServiceLogin(parentLoginWindow, dbci); try { serviceLogin.reviseTheAutenticityOfUserNPwd(txtbName.Text, txtbPwd.Text); return(true); } catch (ErrorLogUsernameFormat euf) { errorMessage = "Nem megfelelő felhasználónév vagy jelszó"; elementWithProblem = txtbName; return(false); } catch (ErrorLogPassContent epc) { errorMessage = "Nem megfelelő felhasználónév vagy jelszó"; elementWithProblem = txtbName; return(false); } }