示例#1
0
        public bool IsInvalid()
        {
            if (!SupplierHelpers.IsSupplierNameInvalid(txtSupName.Text))
            {
                txtSupName.Focus();
                return(false);
            }

            if (!SupplierHelpers.IsAddressInvalid(txtSupAddress.Text))
            {
                txtSupAddress.Focus();
                return(false);
            }

            if (!SupplierHelpers.IsPhoneInvalid(txtSupPhone.Text))
            {
                txtSupPhone.Focus();
                return(false);
            }

            if (!SupplierHelpers.IsEmailInvalid(txtSupEmail.Text))
            {
                txtSupEmail.Focus();
                return(false);
            }

            return(true);
        }
示例#2
0
 private void GetDataGridView()
 {
     dataTable = SupplierHelpers.DataGridViewHelper(sqlHelper, dgvSupplier);
 }