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 40 : 45
Object-oriented Programming in C#
Data Access and Operations
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.


/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.


/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.