public void AddTeam(IViewTeams form, ITeamController teamController, IGroupRepository groupRepository) { _teamController = teamController; _groupRepository = groupRepository; _form = form; AddComboBoxItems(); this.Show(); }
public void AddNewTeam(IAddNewTeamView newForm, Team team, IViewTeams form) { _repository.AddTeam(team); team.Group.Teams.Add(team); _groupRepository.UpdateGroup(team.Group); this.ShowAllTeams(form); }
public void ShowAllTeams(IViewTeams newFrm) { List <Team> teamList = _repository.GetAllTeams().ToList(); newFrm.ShowAllTeams(this, _groupRepository, teamList); }