public ChoseMealViewModel(MenuDays md, Nullable<int> idMenu, string colName) { ChangeMeal = new Command(arg => ChangeMealMethod()); currentDay = md; this.idMenu = idMenu; column = colName; }
public ChoseMealView(MenuDays md, Nullable<int> idMenu, string colName) { InitializeComponent(); viewModel = new MenuBookViewModel(); MBV1.DataContext = viewModel; view = new ChoseMealViewModel(md, idMenu, colName); this.DataContext = view; MBV1.TreeMeals.SelectedItemChanged += TreeView_OnSelectedItemChanged; }