Beispiel #1
0
        private void ClearTopDialogs()
        {
            this.gameInfoDialogTop = null;
            this.gameSettingsDialogTop = null;

            TopCenterControl.Content = this.gameInfoDialogTop;
            TopLeftControl.Content = this.gameSettingsDialogTop;
        }
Beispiel #2
0
        private void SetTopDialogs()
        {
            this.gameInfoDialogTop = new GameInfoDialog(gameController);
            this.gameSettingsDialogTop = new GameSettingsDialog(gameController, false);

            RotateTransform rotateInfo = new RotateTransform(180, 300, 30);
            RotateTransform rotateSettings = new RotateTransform(180, 170, 180);

            this.gameInfoDialogTop.RenderTransform = rotateInfo;
            this.gameSettingsDialogTop.RenderTransform = rotateSettings;

            TopCenterControl.Content = this.gameInfoDialogTop;
            TopLeftControl.Content = this.gameSettingsDialogTop;
        }
Beispiel #3
0
        /// <summary>
        /// Creates new dialogs for a new game of chess
        /// </summary>
        private void ResetDialogs()
        {
            this.gameInfoDialogBottom = new GameInfoDialog(gameController);
            this.gameSettingsDialogBottom = new GameSettingsDialog(gameController, true);

            BottomCenterControl.Content = this.gameInfoDialogBottom;
            BottomRightControl.Content = this.gameSettingsDialogBottom;

            BoardArea.Content = gameController.board;
        }