public TeamSelection() { _heroRepository = new HeroRepository(); _teamRepository = new TeamRepository(); var teamFromDatabase = _teamRepository.GetTeam(); _activeTeam = new Team(teamFromDatabase); InitializeComponent(); ShowTeam(); LoadTeamStats(); LoadAvailableHeroes(); }
private bool TeamIsEmpty() { var teamRepository = new TeamRepository(); var team = teamRepository.GetTeam(); return team.TeamMembers.Count <= 0; }