Ejemplo n.º 1
0
 private void OnAddWorkoutClick()
 {
     var form = new EditWorkoutForm(Data);
       var presenter = new EditWorkoutFormPresenter(form, Data);
       form.Show();
 }
Ejemplo n.º 2
0
 private void OnEditWorkoutClick(string workoutName)
 {
     var form = new EditWorkoutForm(Data, Data.WorkoutFromName(workoutName));
       var presenter = new EditWorkoutFormPresenter(form, Data);
       form.Show();
 }
 private void EditWorkout(string workoutName)
 {
     var form = workoutName == null ? new EditWorkoutForm(_data) : new EditWorkoutForm(_data, _data.WorkoutFromName(workoutName));
       var presenter = new EditWorkoutFormPresenter(form, _data);
       form.Show();
 }