Esempio n. 1
0
        private void LireTableWeaknessStrengh()
        {
            commande.CommandText = "SELECT * FROM [Array Weakness and strengh]";
            OleDbDataReader reader = commande.ExecuteReader();

            while (reader.Read())
            {
                List <int> Tempo = new List <int>();

                Tempo.Add(reader.GetInt32(2));
                Tempo.Add(reader.GetInt32(3));
                Tempo.Add(reader.GetInt32(4));
                Tempo.Add(reader.GetInt32(5));
                Tempo.Add(reader.GetInt32(6));
                Tempo.Add(reader.GetInt32(7));
                Tempo.Add(reader.GetInt32(8));
                Tempo.Add(reader.GetInt32(9));
                Tempo.Add(reader.GetInt32(10));
                Tempo.Add(reader.GetInt32(11));
                Tempo.Add(reader.GetInt32(12));
                Tempo.Add(reader.GetInt32(13));
                Tempo.Add(reader.GetInt32(14));
                Tempo.Add(reader.GetInt32(15));
                Tempo.Add(reader.GetInt32(16));
                Tempo.Add(reader.GetInt32(17));
                Tempo.Add(reader.GetInt32(18));
                Tempo.Add(reader.GetInt32(19));

                Weakness.Add(Tempo);
            }
            reader.Close();
        }
Esempio n. 2
0
 public void AddWeakness(Element element)
 {
     Weakness.Add(element);
 }