private void btnSaveChanges_Click(object sender, EventArgs e) { if (!filledValues()) { //MessageBox.Show("Complete la información"); } else { serviceDA = new DBControllerWSClient(); currentSupplier.RUC = txtRuc.Text; currentSupplier.name = txtNombre.Text; currentSupplier.address = txtDireccion.Text; currentSupplier.bankData = txtCuenta.Text; currentSupplier.contactPhone = txtTelefono.Text; currentSupplier.contactEmail = txtEmail.Text; currentSupplier.contactPerson = txtPersonaContacto.Text; currentSupplier.supplierCode = txtCodProv.Text; currentSupplier.termOfSale = txtTerminoVenta.Text; currentSupplier.state = cbActive.Checked ? 1 : 0; serviceDA.updateSupplier(currentSupplier); MessageBox.Show("El proveedor se modificó satisfactoriamente"); this.Close(); } }