コード例 #1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            VentanaCliente x;

            x = new VentanaCliente();
            x.ShowDialog();
        }
コード例 #2
0
        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;
            }
        }