示例#1
0
 public void UpdateOutsToBestLabel(PokerScoreOuts outs)
 {
     Dispatcher.BeginInvoke((Action) delegate
     {
         OutsToBestLabel.Text = outs.Outs.ToString(CultureInfo.CurrentCulture);
     });
 }
示例#2
0
 public void UpdateBestChanceLabel(PokerScoreOuts outs)
 {
     Dispatcher.BeginInvoke((Action) delegate
     {
         outs.Percentage        = Math.Round(outs.Percentage, 2);
         ChanceOfBestLabel.Text = outs.Percentage.ToString(CultureInfo.CurrentCulture);
     });
 }
示例#3
0
 public void UpdateRoyalFlushOuts(PokerScoreOuts rFlushOuts)
 {
     Dispatcher.BeginInvoke((Action) delegate
     {
         RFlushProgressBar.Value = rFlushOuts.Percentage;
         RFlushProgressBar.SetColour(rFlushOuts.Percentage);
         UpdateRunnerRunnerImage(RFlushRRImage, rFlushOuts.RunnerRunner);
         RFlushOutsLabel.Text       = rFlushOuts.Outs.ToString(CultureInfo.CurrentCulture);
         RFlushPercentageLabel.Text = rFlushOuts.Percentage.ToString("0.00") + "%";
     });
 }
示例#4
0
 public void UpdateFullHouse(PokerScoreOuts fullHouseOuts)
 {
     Dispatcher.BeginInvoke((Action) delegate
     {
         FullHouseProgressBar.Value = fullHouseOuts.Percentage;
         FullHouseProgressBar.SetColour(fullHouseOuts.Percentage);
         UpdateRunnerRunnerImage(FullHouseRRImage, fullHouseOuts.RunnerRunner);
         FullHouseOutsLabel.Text       = fullHouseOuts.Outs.ToString(CultureInfo.CurrentCulture);
         FullHousePercentageLabel.Text = fullHouseOuts.Percentage.ToString("0.00") + "%";
     });
 }
示例#5
0
 public void UpdateFourOfAKindOuts(PokerScoreOuts quadOuts)
 {
     Dispatcher.BeginInvoke((Action) delegate
     {
         QuadsProgressBar.Value = quadOuts.Percentage;
         QuadsProgressBar.SetColour(quadOuts.Percentage);
         UpdateRunnerRunnerImage(QuadsRRImage, quadOuts.RunnerRunner);
         QuadsOutsLabel.Text       = quadOuts.Outs.ToString(CultureInfo.CurrentCulture);
         QuadsPercentageLabel.Text = quadOuts.Percentage.ToString("0.00") + "%";
     });
 }
示例#6
0
 public void UpdateStraightOuts(PokerScoreOuts straightOuts)
 {
     Dispatcher.BeginInvoke((Action) delegate
     {
         StraightProgressBar.Value = straightOuts.Percentage;
         StraightProgressBar.SetColour(straightOuts.Percentage);
         UpdateRunnerRunnerImage(StraightRRImage, straightOuts.RunnerRunner);
         StraightOutsLabel.Text       = straightOuts.Outs.ToString(CultureInfo.CurrentCulture);
         StraightPercentageLabel.Text = straightOuts.Percentage.ToString("0.00") + "%";
     });
 }
示例#7
0
 public void UpdateThreeOfAKindOuts(PokerScoreOuts tripsOuts)
 {
     Dispatcher.BeginInvoke((Action) delegate
     {
         TripsProgressBar.Value = tripsOuts.Percentage;
         TripsProgressBar.SetColour(tripsOuts.Percentage);
         UpdateRunnerRunnerImage(TripsRRImage, tripsOuts.RunnerRunner);
         TripsOutsLabel.Text        = tripsOuts.Outs.ToString(CultureInfo.CurrentCulture);
         TripsrPercentageLabel.Text = tripsOuts.Percentage.ToString("0.00") + "%";
     });
 }
示例#8
0
 public void UpdatePairOuts(PokerScoreOuts pairOuts)
 {
     Dispatcher.BeginInvoke((Action) delegate
     {
         PairProgressBar.Value = pairOuts.Percentage;
         PairProgressBar.SetColour(pairOuts.Percentage);
         UpdateRunnerRunnerImage(PairRRImage, pairOuts.RunnerRunner);
         PairOutsLabel.Text       = pairOuts.Outs.ToString(CultureInfo.CurrentCulture);
         PairPercentageLabel.Text = pairOuts.Percentage.ToString("0.00") + "%";
     });
 }