Exemplo n.º 1
0
        private void Practice_GivePoints(int points)
        {
            Practice_SetTrustExchangeControlsEnabledStateTo(false);

            int scoreAtRoundStart = Practice_PlayerScore;

            Practice_NotifyPlayerOfSendingPoints(points);
            Practice_NotifyPlayerOfReductionOfScoreBySentPoints(points);

            Practice_CurrentRoundRawPointResponse = Practice_CurrentRoundOrdinal % 2 == 0 ? 0 : points;

            Practice_NotifyPlayerOfWaitingOnPersonaResponse();
            Practice_NotifyPlayerOfPersonaResponse();
            Practice_NotifyPlayerOfScoringThisRound(scoreAtRoundStart);

            if (Practice_CurrentRoundOrdinal < Practice_MaximumRoundOrdinal)
            {
                Practice_CurrentRoundOrdinal++;
                Practice_NextRoundButton.Visible = true;
            }
            else
            {
                ShowMessageBoxForTransitioningFromPracticeTaskToTrustExchangeTask();
                Practice_TrustExchangeTaskTab.RemoveFromAllowedTabs();
                AdvanceToTrustExchangeTask();
            }
        }
Exemplo n.º 2
0
        private void Practice_GivePoints(int points)
        {
            Practice_SetTrustExchangeControlsEnabledStateTo(false);

            int scoreAtRoundStart = Practice_PlayerScore;

            Practice_NotifyPlayerOfSendingPoints(points);
            Practice_NotifyPlayerOfReductionOfScoreBySentPoints(points);

            Practice_CurrentRoundRawPointResponse = Practice_CurrentRoundOrdinal % 2 == 0 ? 0 : points;

            Practice_NotifyPlayerOfWaitingOnPersonaResponse();
            Practice_NotifyPlayerOfPersonaResponse();
            Practice_NotifyPlayerOfScoringThisRound(scoreAtRoundStart);

            if (Practice_CurrentRoundOrdinal < Practice_MaximumRoundOrdinal)
            {
                Practice_CurrentRoundOrdinal++;
                Practice_NextRoundButton.Visible = true;
            }
            else
            {
                MessageBox.Show(string.Format("You have finished the Practice {0}.", TrustExchangeTaskTab.Text), string.Format("Advancing to {0}", TrustExchangeTaskTab.Text), MessageBoxButtons.OK);
                Practice_TrustExchangeTaskTab.RemoveFromAllowedTabs();
                AdvanceToTrustExchangeTask();
            }
        }
Exemplo n.º 3
0
        private void AdvanceToTrustExchangeTask()
        {
            StatusButtonAsLabel.SetText(STATUS_TEXT__GIVE_1_OR_2_POINTS_TO_PLAYER2);
            ScoreButtonAsLabel.SetText(SCORE_TEXT, LogicEngine.TrustExchangeTask.PlayerScore);

            SetTrustExchangePictureBoxImageToCurrentRoundPersona();

            Practice_TrustExchangeTaskTab.RemoveFromAllowedTabs();
            ShowTab(TrustExchangeTaskTab);
        }
Exemplo n.º 4
0
        private void Tabs_Selecting(object sender, System.Windows.Forms.TabControlCancelEventArgs e)
        {
            if (!MainFormExtensions.AllowedTabs.Contains(e.TabPage) && !Admin_AllowTabSelection_ToolStripMenuItem.Checked)
            {
                if (MainFormExtensions.AllowedTabs.Count == 0)
                {
                    WelcomeTab.AddToAllowedTabs();
                    Practice_TrustExchangeTaskTab.AddToAllowedTabs();
                    //TrustExchangeTaskTab.AddToAllowedTabs();
                }

                Tabs.SelectedTab = MainFormExtensions.AllowedTabs.Last();
                MessageBox.Show
                (
                    "You cannot choose tabs directly." + Environment.NewLine +
                    "You may proceed only through completing the on-screen instructions.",
                    "Not Allowed",
                    MessageBoxButtons.OK
                );
            }
        }