Beispiel #1
0
        public void Init()
        {
            List <BargainDish> list = _DataService.findBargainDishAll();

            BargainDishList.Clear();
            foreach (var element in list)
            {
                BargainDishList.Add((new BargainDishBean()).CreateBargainDishBean(element));
            }
        }
Beispiel #2
0
        ///
        ///
        /// <summary>
        ///
        /// 回调方法
        /// </summary>
        /// <param name="dt"></param>
        public void SelectedItemChanged(DateTime dt)
        {
            //更新页面数据
            BargainDishList.Clear();
            List <BargainDish> list = _DataService.findBargainDishList(dt);

            foreach (var element in list)
            {
                BargainDishList.Add((new BargainDishBean()).CreateBargainDishBean(element));
            }
        }