public HotDogGroupedDataSource(List <HotDog> hotDogs, BaseUITableViewController callingController) { this.hotDogs = hotDogs; this.callingController = callingController; indexedHotDogs = new Dictionary <string, List <HotDog> > (); foreach (var h in hotDogs) { if (indexedHotDogs.ContainsKey(h.GroupName)) { indexedHotDogs [h.GroupName].Add(h); } else { indexedHotDogs.Add(h.GroupName, new List <HotDog> () { h }); } } keys = indexedHotDogs.Keys.ToArray(); }
public HotDogDataSource(List <HotDog> hotDogs, BaseUITableViewController callingController) { this.hotDogs = hotDogs; this.callingController = callingController; }