public void PopulateSets(List <MTGSet> list) { var table = Consult("select set_code from cards group by set_code"); foreach (DataRow row in table.Rows) { GetSet.AddSet(row[0].ToString(), list); } }
public static void AddSet(string setCode, List <MTGSet> list) { if (list.Where(x => x.Code == setCode).Count() == 0) { GetSet getSet = new GetSet(); getSet.GatherPrice(setCode); list.Add(new MTGSet(setCode, getSet.ReadSet())); } }