private void pictureBox1_Click(object sender, EventArgs e) { VentanaCliente x; x = new VentanaCliente(); x.ShowDialog(); }
private void btnBusqueda_Click_1(object sender, EventArgs e) { VentanaCliente x; x = new VentanaCliente(); x.ShowDialog(); if (x.ClienteSeleccionado == null) { MessageBox.Show("La búsqueda fue cancelada"); } else { txtDatos.Text = x.ClienteSeleccionado.NombresCli; txtDocIdentidad.Text = x.ClienteSeleccionado.DNICli; } }