Ejemplo n.º 1
0
 private void btnbuscarcliente_Click(object sender, EventArgs e)
 {
     try
     {
         Busqueda_Cliente busqueda = new Busqueda_Cliente();
         if (busqueda.ShowDialog() == DialogResult.OK)
         {
             txtcliente_id.Text = busqueda.id;
         }
         txtnombre_cliente.Text = busqueda.Nombre;
         txtcliente_id.ReadOnly = true;
     }
     catch (Exception)
     {
         MessageBox.Show("Error al ingresar a la busqued de clientes");
     }
 }
Ejemplo n.º 2
0
 private void btnbuscarcliente_Click(object sender, EventArgs e)
 {
     try
     {
         Busqueda_Cliente busqueda = new Busqueda_Cliente();
         if (busqueda.ShowDialog() == DialogResult.OK)
         {
             //txtcliennte_id.Text = busqueda.ValorRetorno;    //MessageBox.Show(busqueda.ValorRetorno);
             txtcliennte_id.Text = busqueda.id;
         }
         txtcotitular.Text = busqueda.Cotitular;
         txtemail.Text     = busqueda.email;
         txtNombre.Text    = busqueda.Nombre;
         txtdireccion.Text = busqueda.Direccion;
     }
     catch (Exception)
     {
         MessageBox.Show("Verifique a su Administrador", "Error:", MessageBoxButtons.OK,
                         MessageBoxIcon.Error);
     }
 }