public PlayDungeon()
        {
            _dungeonDatabase = new DungeonDatabase();
            _teamRepository = new TeamRepository();

            InitializeComponent();
            PopupUtils.CoverScreen(100);
            Loaded -= LoadGraphics;
            Loaded += LoadGraphics;
        }
 protected override void CreateKey(string key)
 {
     var dungeonDatabase = new DungeonDatabase();
     var dungeons = dungeonDatabase.AllDungeons;
     IsolatedStorageSettings.ApplicationSettings.Add(DUNGEONS_KEY, dungeons);
 }
 private Dungeon GetDungeon(int dungeonId)
 {
     var dungeonDatabase = new DungeonDatabase();
     return dungeonDatabase.AllDungeons.Single(d => d.Id == dungeonId);
 }