Exemple #1
0
        /// <summary>
        /// 开始游戏按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnStartGame_ButtonClick(object sender, RoutedEventArgs e)
        {
            PlayFXSound(nameof(MenuButtonClickSound));
            StatusButton currentButton = sender as StatusButton;

            if (currentButton == null)
            {
                return;
            }
            switch (currentButton.Name)
            {
            case "btnQuickStartA":
                currentGame.QuickGame(0);
                break;

            case "btnQuickStartB":
                CurrentGame.QuickGame(1);
                break;

            case "btnQuickStartC":
                CurrentGame.QuickGame(2);
                break;
            }
            StartCurrentGame();
        }