Exemple #1
0
        private void CompleteSimulationFromAnalyzer(Results results)
        {
            EnableButtons();

            analyzerResultsRichTextBox.Text = results.ShowResults(false, false);
            ColorSuits(analyzerResultsRichTextBox);
        }
Exemple #2
0
 private void historyShowPlayerNamesCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     if (loadedHistoryResult != null)
     {
         historyResultsRichTextBox.Text = loadedHistoryResult.ShowResults(historyShowPlayerNamesCheckBox.Checked, false);
         ColorSuits(historyResultsRichTextBox);
     }
 }
Exemple #3
0
 private void DisplayResults()
 {
     if (results == null)
     {
         return;
     }
     resultsRichTextBox.Text = results.ShowResults(showPlayerNamesCheckBox.Checked, showTimeCheckBox.Checked);
     ColorSuits(resultsRichTextBox);
 }
Exemple #4
0
        private void displayHistoryResults(Results result)
        {
            loadedHistoryResult = result;

            historyResultsRichTextBox.Text = result.ShowResults(historyShowPlayerNamesCheckBox.Checked, false);
            ColorSuits(historyResultsRichTextBox);
            historyHHRichTextBox.Text = result.HandHistory;

            if (!historyAnalyzeButton.Enabled)
            {
                historyAnalyzeButton.Enabled = true;
            }
        }
Exemple #5
0
        private void CompleteSimulationFromHH(Results results)
        {
            EnableButtons();

            if (results.Board != null)
            {
                boardTextBox.Text          = results.Board.ToString();
                gameComboBox.SelectedIndex = (int)results.GameType;
            }


            analyzerResultsRichTextBox.Text = results.ShowResults(false, false);
            ColorSuits(analyzerResultsRichTextBox);

            Simulation sim;

            if (results.Simulations != null)
            {
                sim = (Simulation)results.Simulations[0];
            }
            else
            {
                return;
            }
            int i = 0;

            if (sim.Cards.Length > 9)
            {
                analyzerResultsRichTextBox.Text += "\n\nError: Maximum of nine hands at showdown exceeded.";
                return;
            }
            foreach (Cards card in sim.Cards)
            {
                handTextBoxes[i].Text = card.ToString();
                i++;
            }
        }