public ExerciseLengthPopupViewModel(Workout workout, ExerciseType type, AddWorkoutViewModel parent)
 {
     // TODO: prolly want to implement the is busy, look at AddWorkoutViewModel
     //AddExerciseCommand = new Command(
     //    async () => await AddExercise()
     //);
     _exercise = new WorkoutType {
         Exercise = type
     };
     _parent            = parent;
     _type              = type;
     _workout           = workout;
     AddExerciseCommand = new Command(AddExercise);
 }
Esempio n. 2
0
 public ExerciseLengthPopupView(Workout workout, ExerciseType type, AddWorkoutViewModel parent)
 {
     InitializeComponent();
     _viewModel     = new ExerciseLengthPopupViewModel(workout, type, parent);
     BindingContext = _viewModel;
 }