Updated syntax to reflect modern C# usage of EventHandler.