Exemplo n.º 1
0
        public void ShowTrainingGroups()
        {
            TrainingGroupController trainingGroupController = new TrainingGroupController();

            IViewTrainingGroupsForm form = formFactory.CreateViewTrainingGroupsForm();

            trainingGroupController.ShowTrainingGroups(form, trainingGroupRepository, this);
        }
Exemplo n.º 2
0
        public void ShowTrainingGroups(IViewTrainingGroupsForm form, ITrainingGroupRepository trainingGroupRepository,
                                       IMainController mainController)
        {
            List <TrainingGroup> trainingGroups = trainingGroupRepository.GetAllTrainingGroups();

            Subject subject = (Subject)trainingGroupRepository;

            subject.Attach((IObserver)form);

            form.ShowModaless(mainController, trainingGroups);
        }