コード例 #1
0
        public TeamSelection()
        {
            _heroRepository = new HeroRepository();
            _teamRepository = new TeamRepository();

            var teamFromDatabase = _teamRepository.GetTeam();
            _activeTeam = new Team(teamFromDatabase);

            InitializeComponent();

            ShowTeam();
            LoadTeamStats();
            LoadAvailableHeroes();
        }
コード例 #2
0
 private bool TeamIsEmpty()
 {
     var teamRepository = new TeamRepository();
     var team = teamRepository.GetTeam();
     return team.TeamMembers.Count <= 0;
 }