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)); } } }
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); } }