Esempio n. 1
0
 void BtnGenClick(object sender, EventArgs e)
 {
     for (int i = 1; i < 200; i++)
     {
         Prueba p = new Prueba(i);
         p.LlenarAleatorio();
         this.Pruebas.Add(p);
     }
 }
Esempio n. 2
0
 void TestFormLoad(object sender, EventArgs e)
 {
     for (int i = 1; i < 200; i++)
     {
         Prueba p = new Prueba(i);
         p.LlenarAleatorio();
         this.Pruebas.Add(p);
     }
     this.iGridTest.Rows.Clear();
     foreach(Prueba p in this.Pruebas)
     {
         this.iGridTest.Rows.Add(
             new object[]{
             p.Campo1,p.Campo2,p.Campo3,p.Campo4,p.Campo5
             });
     }
 }