public void ShowEditExercise(IFormFactory formFactory, IExerciseRepository exerciseRepository, string exerciseName, IMainController mainController) { IEditExerciseForm form = formFactory.CreateEditExerciseForm(); Exercise exercise = exerciseRepository.GetExerciseWithName(exerciseName); form.ShowModal(mainController, exercise); }