public void VerstuurBericht(String inhoud) { BerichtEventArgs bericht = new BerichtEventArgs(inhoud); if (Verstuurders != null) { Verstuurders(bericht); } }
public static void VerstuurBerichtSchreeuwen(BerichtEventArgs bericht) { Console.WriteLine(bericht.Inhoud.ToUpper()); }
public static void VerstuurBerichtViaEmail(BerichtEventArgs bericht) { Console.WriteLine("Nieuwe email: " + bericht.Inhoud); }