Ejemplo n.º 1
0
        public void LoadShoeResults(int index)
        {
            ItemsCoup.Clear();
            ChartCoupScores = new ObservableCollection <ChartDataPoint>();

            foreach (ResultBaccaratCoup result in App.GameBaccaratSessionViewModel.session.shoeResults[index])
            {
                string  indexDecision    = result.IndexDecision.ToString();
                decimal totalDollarScore = result.TotalDollarScore;

                ItemsCoup.Add(new ItemResultBaccaratCoupViewModel()
                {
                    IndexDecision = indexDecision,
                    Winner        = Utilities.Utilities.ImageURIFromResultArray((int)result.OutcomeCoup),
                    CardPlayer1   = Utilities.Utilities.ImageURIFromCardNameArray((int)result.CardPlayer1.Suit, (int)result.CardPlayer1.Value),
                    CardPlayer2   = Utilities.Utilities.ImageURIFromCardNameArray((int)result.CardPlayer2.Suit, (int)result.CardPlayer2.Value),
                    CardPlayer3   = Utilities.Utilities.ImageURIFromCardNameArray((int)result.CardPlayer3.Suit, (int)result.CardPlayer3.Value),
                    CardBanker1   = Utilities.Utilities.ImageURIFromCardNameArray((int)result.CardBanker1.Suit, (int)result.CardBanker1.Value),
                    CardBanker2   = Utilities.Utilities.ImageURIFromCardNameArray((int)result.CardBanker2.Suit, (int)result.CardBanker2.Value),
                    CardBanker3   = Utilities.Utilities.ImageURIFromCardNameArray((int)result.CardBanker3.Suit, (int)result.CardBanker3.Value),
                    IsBetBanker   = result.CoupBet.BetPlacement == OutcomesBaccaratCoup.B ? true : false,
                    IsBetPlayer   = result.CoupBet.BetPlacement == OutcomesBaccaratCoup.P ? true : false,
                    IsBetTie      = result.CoupBet.BetPlacement == OutcomesBaccaratCoup.T ? true : false,
                    UnitBet       = result.CoupBet.UnitBet.ToString(),
                    TotalScore    = totalDollarScore.ToString()
                });

                // for coup vs. score chart:
                ChartCoupScores.Add(new ChartDataPoint()
                {
                    x = indexDecision, y = totalDollarScore
                });
            }

            LoadShoeStatistics(index);
        }
Ejemplo n.º 2
0
 internal void ClearItems()
 {
     ItemsCoup.Clear();
     ChartCoupScores.Clear();
 }