Exemple #1
0
        protected void SavePickers()
        {
            //delete existing
            CurrentMenu.RemoveItems();

            //save all pickers
            foreach (EntityPicker picker in EntityLists)
            {
                List <int>         selKeys     = picker.GetSelectedKeys();
                List <hccMenuItem> newItemList = new List <hccMenuItem>();

                selKeys.ForEach(delegate(int key)
                {
                    hccMenuItem saveItem = hccMenuItem.GetById(key);
                    newItemList.Add(saveItem);
                });

                CurrentMenu.AddItems(newItemList);
            }
        }