public void AddTeam(IViewTeams form, ITeamController teamController, IGroupRepository groupRepository)
 {
     _teamController  = teamController;
     _groupRepository = groupRepository;
     _form            = form;
     AddComboBoxItems();
     this.Show();
 }
Esempio n. 2
0
        public void AddNewTeam(IAddNewTeamView newForm, Team team, IViewTeams form)
        {
            _repository.AddTeam(team);
            team.Group.Teams.Add(team);
            _groupRepository.UpdateGroup(team.Group);

            this.ShowAllTeams(form);
        }
Esempio n. 3
0
        public void ShowAllTeams(IViewTeams newFrm)
        {
            List <Team> teamList = _repository.GetAllTeams().ToList();

            newFrm.ShowAllTeams(this, _groupRepository, teamList);
        }