public DiceButtonViewModel(int number, WinFuction win) { WinFuction = win; Number = number; Bet = new BetPoco(number); BetClickCommand = new TsCommand(BetClickExecute); }
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); }