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 and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 14 : 20
Object-oriented Programming in C#
Operators, Delegates, and Events
Examples of events

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

A graphical user interface (GUI) program with two buttons

/user/normark/oop-csharp-1/sources/c-sharp/Die-variants/event-example/die.csThe die class with history and dieNotifier. This program is explained

/user/normark/oop-csharp-1/sources/c-sharp/Die-variants/event-example/dieApp.csA client of die that reports 'two sixes in a row' via an event. This program is explained

/user/normark/oop-csharp-1/sources/c-sharp/Die-variants/event-example/sample-outputPossible program output of the die application (abbreviated).

Go to exerciseAdditional Die events
/user/normark/oop-csharp-1/sources/c-sharp/windows-forms/ButtonDemo.csA window with two buttons and a textbox. This program is explained