public void OkSelect_Fun() { //保存需要添加的菜品 List <DishBeanUtil> list = new List <DishBeanUtil>(); foreach (var element in _DishesMenusSelected) { if (element.IsSelectedMenus) { //查看数据是否已经加入到菜牌中 list.Add(element); } } ViewModelDeliver.Set(list); }
public void OkSelectSegin_Fun() { //保存需要添加的菜品 ViewModelDeliver.Set(SelectedItemDish); }