protected void BtnBuscar_Click(object sender, EventArgs e)
 {
     try
     {
         var descProducto = ds.BuscarDescProducto(txtBuscarPlaca.Text);
         var auto         = aut.BuscarAuto(txtBuscarPlaca.Text);
         var cliente      = cli.BuscarCliente(txtBuscarPlaca.Text);
         if (auto != null)
         {
             LbRCorreo.Text        = cliente.Correo;
             LbRMovil.Text         = cliente.Movil.ToString();
             LbRMarca.Text         = auto.Marca;
             LbRPlaca.Text         = auto.Placa;
             TxtNombreCliente.Text = cliente.NombreCliente;
             LbRKm.Text            = auto.KM.ToString();
             LbRCedula.Text        = cliente.Cedula.ToString();
             TextBox3.Text         = descProducto.Cantidad.ToString();
             TextBox2.Text         = descProducto.Descripcion;
             TextBox1.Text         = descProducto.Precio.ToString();
         }
         else
         {
             MostarMensajeError("El auto no existe");
         }
     }
     catch (Exception)
     {
         MostarMensajeError("Ocurrio un error");
     }
 }
 protected void BtnBuscarAuto_Click(object sender, EventArgs e)
 {
     try
     {
         var cliente = cli.BuscarCliente(TxtBusplaIngVeh.Text);
         var auto    = aut.BuscarAuto(TxtBusplaIngVeh.Text);
         if (auto != null)
         {
             TxtCedula.Text   = cliente.Cedula.ToString();
             TxtProVeh.Text   = auto.ProblemasVehiculo;
             TxtPlaca.Text    = auto.Placa;
             TxtEstilo.Text   = auto.Estilo;
             TxtMarca.Text    = auto.Marca;
             TxtAno.Text      = auto.Ano.ToString();
             TxtNota.Text     = auto.Nota;
             TxtBin.Text      = auto.Bin.ToString();
             TxtKM.Text       = auto.KM.ToString();
             TxtRevInt.Text   = auto.RevisionIntervalos;
             TxtManPrev.Text  = auto.MantenimientoPrevio;
             TxtDanVeh.Text   = auto.DanosVehiculo;
             TxtNCliente.Text = cliente.NombreCliente;
             TxtTelefono.Text = cliente.Telefono.ToString();
             TxtMovil.Text    = cliente.Movil.ToString();
             TxtCorreo.Text   = cliente.Correo;
             TxtPlaca.Text    = cliente.Placa;
         }
         else
         {
             MostarMensajeError("El auto no existe");
         }
     }
     catch (Exception)
     {
         MostarMensajeError("Ocurrio un error");
     }
 }