Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public HotDogDataSource(List <HotDog> hotDogs, BaseUITableViewController callingController)
 {
     this.hotDogs           = hotDogs;
     this.callingController = callingController;
 }