Ejemplo n.º 1
0
 private async void OnAddFood(Type obj)
 {
     if (Exercise == null)
     {
         Exercise = await blRouter.GetExercise(_name);
     }
     _eventAggregator.GetEvent <BE.Events.AddExerciseToTraningEvent>()
     .Publish(new BE.Events.AddExerciseToTraningArg()
     {
         Exercise = Exercise
     });
 }
Ejemplo n.º 2
0
 private async void Init(string name)
 {
     blRouter = new BL.BlRouter();
     Exercise = await blRouter.GetExercise(name);
 }
Ejemplo n.º 3
0
 private async void Init(string name)
 {
     blRouter = new BL.BlRouter(_eventAggregator);
     Exercise = await blRouter.GetExercise(name);
 }