This sample shows how to declare, invoke, and configure events in C#. For additional information, see Events (C# Programming Guide).
This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest codin