private void button4_Click(object sender, EventArgs e) { frmBuscarClientes x; x = new frmBuscarClientes(); x.ShowDialog(); }
private void btnClientes_Click(object sender, EventArgs e) { frmBuscarClientes x; x = new frmBuscarClientes(); x.btnAceptar.Visible = false; x.ShowDialog(); }
private void btnBuscarCliene_Click(object sender, EventArgs e) { frmBuscarClientes x; x = new frmBuscarClientes(); x.btnAceptar.Visible = true; x.ShowDialog(); if (x.ClienteSeleccionado == null) { MessageBox.Show("La busqueda fue cancelada."); } else { txtNombreCliente.Text = x.ClienteSeleccionado.Nombre; txtApellidoCliente.Text = x.ClienteSeleccionado.Apellido; txtCorreoCliente.Text = x.ClienteSeleccionado.Correo; txtDNI.Text = x.ClienteSeleccionado.DNI; } }