コード例 #1
0
 public ChoseMealViewModel(MenuDays md, Nullable<int> idMenu, string colName)
 {
     ChangeMeal = new Command(arg => ChangeMealMethod());
     currentDay = md;
     this.idMenu = idMenu;
     column = colName;
 }
コード例 #2
0
 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;
 }