Beispiel #1
0
 private void registros(datos Datos)
 {
     this.etiqueta("lblID_" + Datos.idVideojuego, "<span size=\"12000\" foreground=\"#000000\">" + Datos.idVideojuego + "</span>");
         this.x += 100;
         this.etiqueta("lblCodigo_" +Datos.idVideojuego , "<span size=\"12000\" foreground=\"#000000\">" + Datos.nombre + "</span>");
         this.x += 200;
         this.etiqueta("lblNombre_" + Datos.idVideojuego, "<span size=\"12000\" foreground=\"#000000\">" + Datos.Anio+ "</span>");
         this.x += 200;
         this.etiqueta("lblNombre_" + Datos.idVideojuego, "<span size=\"12000\" foreground=\"#000000\">" + Datos.FabricanteNombre+ "</span>");
         this.x += 200;
         this.opciones(alumno);
 }
Beispiel #2
0
        public ArrayList ObtenerTodos()
        {
            this.InciarConeccion ();

            MySqlCommand comando = new MySqlCommand(QueryDeConneccion(),this.myConeccion);

            MySqlDataReader Lector = comando.EndExecuteReader ();

            ArrayList ListaArreglos = new ArrayList ();

            datos Datos = new datos ();

            while (Lector.Read())
            {
                Datos.idVideojuego = Lector["idVideojuego"].ToString;
                Datos.nombre = Lector["nombre"].ToString;
                Datos.Anio = Lector ["ano"].ToString;
                Datos.FabricanteNombre = Lector["Fabricante_nombre"].ToString;
                ListaArreglos.Add (Datos);
            }

            return ListaArreglos;
        }