Ejemplo n.º 1
0
 private void ReadItems(SQLiteHelper db, HeroesTextHelper HeroesText)
 {
     using (DbDataReader reader = db.GetReader("SELECT * FROM ItemClassInfo left join equipiteminfo on ItemClassInfo.itemclass = equipiteminfo.itemclass order by RequiredLevel;"))
     {
         while (reader != null && reader.Read())
         {
             Searcher.Add(new ItemClassInfo(reader, HeroesText));
         }
     }
 }
Ejemplo n.º 2
0
 public void Add(string str)
 {
     char[] word = str.ToCharArray();
     if (Nodes.ContainsKey(word.Length))
     {
         src.Add(Nodes[word.Length], word);
     }
     else
     {
         Nodes[word.Length] = new Node(word);
     }
 }