private void btnAceptar_Click(object sender, EventArgs e) { try { if (!validaciones()) { return; } Cliente c = (Cliente)clienteBindingSource.Current; c.Zona = (Zona)cbZona.SelectedItem; c.Activo = true; c.FechaInicio = fechaInicioDateTimePicker.Value; if (c.Id == 0) { DatosCliente.Crear(c); } else { DatosCliente.Modificar(c); } Close(); } catch { MessageBox.Show("Complete todos los campos"); } }