protected virtual void NewTwoSix(DiceEventArgs e) { if (this.two_six_row != null) { this.two_six_row(this, e); } }
protected virtual void NewGreaterThan20(DiceEventArgs e) { if (this.greater_than_or_equal_20 != null) { this.greater_than_or_equal_20(this, e); } }
public void SimulateNewGreater(string message) { DiceEventArgs e = new DiceEventArgs(message); this.NewGreaterThan20(e); }
public void SimulateNewTwoSix(string message) { DiceEventArgs e = new DiceEventArgs(message); this.NewTwoSix(e); }
private void GreaterOrEq20(object sender, DiceEventArgs e) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Triggered " + e.Message + "event"); Console.ResetColor(); }