public static void ReDo(Casino casino, ProxyWallet bal, iAccount acc) { bool flag = true; while (flag) { Console.WriteLine("What ammount of money do you want to bet: "); decimal sum = bal.Withdraw(decimal.Parse(Console.ReadLine())); Console.WriteLine( "What type of bet?(1 - Manque, 2 - Passe, 3 - Rouge, 4 - Noire, 5 - Pair, 6 - Impair, default - digit)"); int t = int.Parse(Console.ReadLine()); (casino.roulette as RouletteMachine)?.Add(acc.wallet.Withdraw(sum)); Console.WriteLine("Roulette spinning"); (casino.roulette as RouletteMachine).Work(t); casino.roulette.Spin(); casino.accounts.Find(n => n.Login.Equals(acc.Login)).wallet.AddMoney(casino.roulette.Withdraw()); Console.WriteLine("\nYou current money: " + (casino.roulette as RouletteMachine)._sum); Console.WriteLine("\nDo you want to continue?( y/n )"); string answ = Console.ReadLine(); if (answ.ToLower().Equals("y")) { flag = true; } else { flag = false; } } acc.wallet.AddMoney(casino.roulette.Withdraw()); }
public EUR_Account_Decorator(iAccount acc) : base(acc) { }
public RUB_Account_Decorator(iAccount acc) : base(acc) { }
public UAH_Account_Decorator(iAccount acc) : base(acc) { }
public AccountDecorator(iAccount acc) { this.Account = acc; }
public override void Remove(iAccount acc) { accounts.Remove(acc); }
public override void Register(iAccount acc) { accounts.Add(acc); }
public abstract void Remove(iAccount acc);
public abstract void Register(iAccount acc);