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); }
private void GetDataGridView() { dataTable = SupplierHelpers.DataGridViewHelper(sqlHelper, dgvSupplier); }