Example of creating events in .Net.