Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 public override void Execute(SubViewModel subViewModel)
 {
     var viewModel = subViewModel as JournalViewModel;
     var meal = viewModel.factories.CreateMeal();
     viewModel.Navigator.GoToMealEditing(meal.Id);
 }
Ejemplo n.º 3
0
 public override void Execute(SubViewModel subViewModel)
 {
 }
Ejemplo n.º 4
0
 public override void Execute(SubViewModel subViewModel)
 {
     var viewModel = subViewModel as JournalViewModel;
     viewModel.Navigator.GoToNewInsulin();
 }
Ejemplo n.º 5
0
 public abstract void Execute(SubViewModel subViewModel);