示例#1
0
        public void LoadGame(ref ActiveGameData newGameData)
        {
            gameData    = newGameData;
            newGameData = null;
            this.Title  = gameData.GameName;
            DescriptionTextBlock.Text = gameData.GameDescription;
            this.Icon = ImageExtensions.BitmapToImageSource(gameData.GameIcon);
            CustomControlArea.Content = gameData.GameCustomControl;
            SetStartButton(gameData.EnumValue);

            Game.Get.SetRunningGameBehavior(GameList.GetGameBehavior(gameData.EnumValue));
        }