private bool PerformValidation()
        {
            bool   Result   = true;
            string message  = AddFunc.CheckControlTextBoxStringEmpty(txtAlamat, txtBornDate, txtDescription, txtEmail, txtName, txtNoBatch);
            string messages = AddFunc.CheckComboBoxValue(LstDepartment, Position);

            if (message != string.Empty)
            {
                AddFunc.MsgError(message);
                Result = false;
            }

            return(Result);
        }
Exemple #2
0
        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);
        }