public void AbrirParaModificar(Cliente unCliente, listadoCliente frmEnviador) { frmPadre = frmEnviador; clienteDelForm = unCliente; this.Show(); txtApellido.Text = unCliente.Apellido; txtCalle.Text = unCliente.Dom_calle; txtCodPostal.Text = unCliente.Dom_cod_postal; txtDepto.Text = unCliente.Dom_depto; txtCuil.Text = unCliente.Cuil; cmbTipoDni.Text = unCliente.Tipo_Doc; txtDni.Text = Convert.ToString(unCliente.Dni); txtFechaNac.Text = Convert.ToString(unCliente.Fecha_nac); txtLocalidad.Text = unCliente.Dom_ciudad; txtMail.Text = unCliente.Mail; txtNombre.Text = unCliente.Nombre; txtNroPiso.Text = Convert.ToString(unCliente.Dom_piso); txtNumeroCalle.Text = Convert.ToString(unCliente.Dom_nro_calle); txtTelefono.Text = unCliente.Telefono; chkActivo.Checked = unCliente.Activo; btnAceptarACliente.Visible = false; btnAceptarRCliente.Visible = false; }
public void AbrirParaAgregar(listadoCliente frmEnviador) { frmPadre = frmEnviador; this.Show(); cmbTipoDni.SelectedIndex = 0; txtDni.Enabled = true; txtApellido.Text = ""; txtCalle.Text = ""; txtCodPostal.Text = ""; txtDepto.Text = ""; txtCuil.Text = ""; txtFechaNac.Text = Convert.ToString(DateTime.Today); txtLocalidad.Text = ""; txtMail.Text = ""; txtNombre.Text = ""; txtNroPiso.Text = ""; txtNumeroCalle.Text = ""; txtTelefono.Text = ""; chkActivo.Visible = false; btnAceptarMCliente.Visible = false; btnAceptarACliente.Visible = true; btnAceptarRCliente.Visible = false; }