Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     Cursor = Cursors.WaitCursor;
     using (GestionarClientes ventanaSeleccion = new GestionarClientes())
     {
         if (ventanaSeleccion.ShowDialog() == DialogResult.OK)
         {
             this.datosClienteSeleccionado = ventanaSeleccion.datosFilaCliente;
             cliente.Text = datosClienteSeleccionado["ID"].ToString();
         }
     }
     Cursor = Cursors.Default;
 }
Beispiel #2
0
 private void btnSeleccionarCliente_Click(object sender, EventArgs e)
 {
     Cursor = Cursors.WaitCursor;
     using (GestionarClientes ventanaSeleccion = new GestionarClientes())
     {
         if (ventanaSeleccion.ShowDialog() == DialogResult.OK)
         {
             this.datosClienteSeleccionado = ventanaSeleccion.datosFilaCliente;
             txtCliente.Text = datosClienteSeleccionado["Nombre"].ToString() + " " + datosClienteSeleccionado["Apellido"].ToString();
             haySeleccionado = true;
         }
     }
     Cursor = Cursors.Default;
 }