Esempio n. 1
0
 /// <summary>
 /// Method, that invokes if player bet on any number, displays if his bet won
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void BetMethod(object sender, RouletteSpinsEventArgs e)
 {
     if (_currNum == e.WinningNum)
     {
         Console.WriteLine("\t{0}, you won", _name);
     }
 }
 /// <summary>
 /// Invokes method
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnSomeNumWins(RouletteSpinsEventArgs e)
 {
     Console.WriteLine("{0} WINS", e.WinningNum);
     SomeNumWins?.Invoke(this, e);
     Console.WriteLine("_______");
 }