Пример #1
0
        public void ShowEditTraining(IFormFactory formFactory,
                                     ITrainingRepository trainingRepository,
                                     IExerciseRepository exerciseRepository,
                                     string trainingName,
                                     IMainController mainController)
        {
            IEditTrainingForm form = formFactory.CreateEditTrainingForm();

            Training training = trainingRepository.GetTrainingWithName(trainingName);

            List <Exercise> exercises = exerciseRepository.GetAllExercises();

            form.ShowModal(mainController, training, exercises);
        }