예제 #1
0
        public override Android.Support.V4.App.Fragment GetItem(int position)
        {
            var exerciseName = db.Get <Exercise>(workoutSteps[position].ExerciseId).Name;

            return(WorkoutProcessFragment.newInstance(
                       workoutSteps[position].Reps, exerciseName, workoutSteps[position].Sets));
        }
예제 #2
0
        public static WorkoutProcessFragment newInstance(int numReps, string exerciseName, int numSets)
        {
            WorkoutProcessFragment fragment = new WorkoutProcessFragment();
            Bundle args = new Bundle();

            args.PutInt("numReps", numReps);
            args.PutString("exerciseName", exerciseName);
            args.PutInt("numSets", numSets);
            fragment.Arguments = args;

            return(fragment);
        }