Exemple #1
0
 protected virtual void NewTwoSix(DiceEventArgs e)
 {
     if (this.two_six_row != null)
     {
         this.two_six_row(this, e);
     }
 }
Exemple #2
0
 protected virtual void NewGreaterThan20(DiceEventArgs e)
 {
     if (this.greater_than_or_equal_20 != null)
     {
         this.greater_than_or_equal_20(this, e);
     }
 }
Exemple #3
0
        public void SimulateNewGreater(string message)
        {
            DiceEventArgs e = new DiceEventArgs(message);

            this.NewGreaterThan20(e);
        }
Exemple #4
0
        public void SimulateNewTwoSix(string message)
        {
            DiceEventArgs e = new DiceEventArgs(message);

            this.NewTwoSix(e);
        }
Exemple #5
0
 private void GreaterOrEq20(object sender, DiceEventArgs e)
 {
     Console.ForegroundColor = ConsoleColor.Green;
     Console.WriteLine("Triggered " + e.Message + "event");
     Console.ResetColor();
 }