public void Init() { List <BargainDish> list = _DataService.findBargainDishAll(); BargainDishList.Clear(); foreach (var element in list) { BargainDishList.Add((new BargainDishBean()).CreateBargainDishBean(element)); } }
/// /// /// <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)); } }