コード例 #1
0
        protected void LoadEntityPicker(EntityPicker picker, Enums.MealTypes mealType)
        {
            List <hccMenuItem> allItemsList      = hccMenuItem.GetBy(mealType);
            List <hccMenuItem> selectedItemsList = new List <hccMenuItem>();

            if (CurrentMenu != null)
            {
                selectedItemsList = CurrentMenu.GetMenuItems(false, mealType);
            }

            picker.Bind <hccMenuItem>(allItemsList, selectedItemsList);
        }