public DeleteHero()
 {
     InitializeComponent();
     _heroRepository = new HeroRepository();
     _teamRepository = new TeamRepository();
     LoadPlayerHeroes(HeroGrid);
 }
        public PlayDungeon()
        {
            _dungeonDatabase = new DungeonDatabase();
            _teamRepository = new TeamRepository();

            InitializeComponent();
            PopupUtils.CoverScreen(100);
            Loaded -= LoadGraphics;
            Loaded += LoadGraphics;
        }
        public TeamSelection()
        {
            _heroRepository = new HeroRepository();
            _teamRepository = new TeamRepository();

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

            InitializeComponent();

            ShowTeam();
            LoadTeamStats();
            LoadAvailableHeroes();
        }
 public HeroesOnActiveTeamGetter()
 {
     this._teamRepository = new TeamRepository();
 }
 private bool TeamIsEmpty()
 {
     var teamRepository = new TeamRepository();
     var team = teamRepository.GetTeam();
     return team.TeamMembers.Count <= 0;
 }