示例#1
0
 public DiceButtonViewModel(int number, WinFuction win)
 {
     WinFuction      = win;
     Number          = number;
     Bet             = new BetPoco(number);
     BetClickCommand = new TsCommand(BetClickExecute);
 }
示例#2
0
        public decimal DistributeBonus(int[] dicePoint, WinFuction winFuction, BetPoco bet)
        {
            decimal bonus = 0;

            if (winFuction.IsWin(dicePoint))
            {
                bonus  = winFuction.GetBonus(bet.Bets);
                bonus += bet.Bets;
            }
            return(bonus);
        }