Пример #1
0
 public override void Execute(SubViewModel subViewModel)
 {
     var viewModel = subViewModel as JournalViewModel;
     var sugar = viewModel.factories.CreateSugar();
     var sugarViewModel = new SugarViewModel(sugar, viewModel.factories);
     viewModel.ChooseAnAdded(sugarViewModel);
     viewModel.Refresh();
 }
Пример #2
0
 public override void Execute(SubViewModel subViewModel)
 {
     var viewModel = subViewModel as JournalViewModel;
     var meal = viewModel.factories.CreateMeal();
     viewModel.Navigator.GoToMealEditing(meal.Id);
 }
Пример #3
0
 public override void Execute(SubViewModel subViewModel)
 {
 }
Пример #4
0
 public override void Execute(SubViewModel subViewModel)
 {
     var viewModel = subViewModel as JournalViewModel;
     viewModel.Navigator.GoToNewInsulin();
 }
Пример #5
0
 public abstract void Execute(SubViewModel subViewModel);