private void OnAddWorkoutClick() { var form = new EditWorkoutForm(Data); var presenter = new EditWorkoutFormPresenter(form, Data); form.Show(); }
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(); }