private void CompleteSimulationFromAnalyzer(Results results) { EnableButtons(); analyzerResultsRichTextBox.Text = results.ShowResults(false, false); ColorSuits(analyzerResultsRichTextBox); }
private void historyShowPlayerNamesCheckBox_CheckedChanged(object sender, EventArgs e) { if (loadedHistoryResult != null) { historyResultsRichTextBox.Text = loadedHistoryResult.ShowResults(historyShowPlayerNamesCheckBox.Checked, false); ColorSuits(historyResultsRichTextBox); } }
private void DisplayResults() { if (results == null) { return; } resultsRichTextBox.Text = results.ShowResults(showPlayerNamesCheckBox.Checked, showTimeCheckBox.Checked); ColorSuits(resultsRichTextBox); }
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; } }
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++; } }