Lecture overview -- Keyboard shortcut: 'u'  Previous page: Events in C# -- Keyboard shortcut: 'p'  Next page: Patterns and Techniques [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Operators, Delegates, and Events - slide 14 : 20

Examples of events

A die tossing program that reports 'two sixes in a row'

A graphical user interface (GUI) program with two buttons

die.cs
The die class with history and dieNotifier.
dieApp.cs
A client of die that reports 'two sixes in a row' via an event.
sample-output
Possible program output of the die application (abbreviated).
Go to exercise
Additional Die events
ButtonDemo.cs
A window with two buttons and a textbox.