private bool PerfomValidation() { bool result = true; String message = AddFunc.CheckComboBoxValue(cboEmployee, cboUserGroup); if (message != string.Empty) { AddFunc.MsgWarning(message); return(false); } message = AddFunc.CheckControlTextBoxStringEmpty(txtPassword, txtReTypePass, txtUsername); if (message != string.Empty) { AddFunc.MsgWarning(message); return(false); } if (txtPassword.Text != txtReTypePass.Text) { AddFunc.MsgWarning("Password wasn't match"); return(false); } return(result); }