/// <summary> /// process of logging in /// </summary> public void haveTryToLogingIn() { if (isThereConecctionDetails()) //again in the row - if the user wanted to avoid the filling in the form { try { if (serviceLogin.authenticByDBIsGood(txtbName.Text, txtbPwd.Text)) { try { FormMainWindow fmw = new FormMainWindow(parentLoginWindow, serviceLogin.getTheUserRightsFromDB(), serviceLogin.getTheUserDetailsFromDB(), dbci); fmw.Show(); parentLoginWindow.Visible = false; } catch (ErrorServiceLoginInfoCollect e) { errorHandleError(e.Message); } } } catch (ErrorServiceLoginAuthentic e) { errorHandleWarn(e.Message); } catch (Exception e) { errorHandleError(e.Message); } } }