public void ShowEditTrainingPeriod(IFormFactory formFactory, ITrainingPeriodRepository trainingPeriodRepository, int periodId, IMainController mainController) { IEditTrainingPeriodForm form = formFactory.CreateEditTrainingPeriodForm(); TrainingPeriod trainingPeriod = trainingPeriodRepository.GetTrainingPeriodWithId(periodId); form.ShowModal(mainController, trainingPeriod); }