Exemplo n.º 1
0
 private void CargarDatos()
 {
     try
     {
         t.ObtenerDatos();
         cboSucursal.SelectedIndex = SeleccionarSucursal(t.IDSucursal);
         txtNombre.Text            = t.Nombre;
         txtApellidos.Text         = t.Apellidos;
         cboPuesto.SelectedIndex   = SeleccionarPuesto(t.Puesto);
         txtNumNomina.Text         = t.Nomina;
         txtTelefono.Text          = t.Telefono;
         txtCelular.Text           = t.Celular;
         txtCorreo.Text            = t.Correo;
         txtDireccion.Text         = t.Direccion;
         txtCiudad.Text            = t.Ciudad;
         txtEstado.Text            = t.Estado;
         txtCP.Text      = t.CP.ToString();
         pcbImagen.Image = t.Imagen;
         huella          = t.Huella;
     }
     catch (MySqlException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }