public void ViewHistoryWorkoutDetails(HistoryWorkout historyWorkout)
        {
            var workoutController = new WorkoutController();
            var newFrm            = _formsFactory.CreateShowHistoryWorkoutDetails();

            workoutController.ViewHistoryWorkoutDetails(newFrm, historyWorkout);
        }
示例#2
0
 private void UpdateList()
 {
     for (int i = 0; i < _historyWorkouts.Count(); i++)
     {
         HistoryWorkout historyWorkout = _historyWorkouts[i];
         ListViewItem   lvt            = new ListViewItem(historyWorkout.WorkoutName);
         lvt.SubItems.Add(historyWorkout.Date);
         listHistoryWorkouts.Items.Add(lvt);
     }
 }
        public void AddWorkoutToHistory(Workout workout, string duration, string date, int caloriesBurned, List <int> reps, List <int> weights)
        {
            HistoryWorkout historyWorkout = new HistoryWorkout(workout.Id, workout.WorkoutName, workout.Exercises, workout.SetsPerExercise, duration, date, caloriesBurned, reps, weights);

            _listHistoryWorkouts.Add(historyWorkout);
        }
示例#4
0
 public void ShowHistoryWorkoutDetails(HistoryWorkout historyWorkout)
 {
     lblHistoryWorkoutDetails.Text = historyWorkout.ToString();
     this.Text = historyWorkout.WorkoutName;
     this.Show();
 }
 public void ViewHistoryWorkoutDetails(IShowHistoryWorkoutDetails form, HistoryWorkout historyWorkout)
 {
     form.ShowHistoryWorkoutDetails(historyWorkout);
 }