Difference between revisions of "OOP Class8"
esse quam videri
(→Windows forms) |
(→Windows forms) |
||
Line 19: | Line 19: | ||
===Examaple of event handlers and classes=== | ===Examaple of event handlers and classes=== | ||
http://iam.colum.edu/oop/MotorvehicleRace.zip | http://iam.colum.edu/oop/MotorvehicleRace.zip | ||
+ | |||
+ | <csharp> | ||
+ | private void button1_Click(object sender, EventArgs e) | ||
+ | { | ||
+ | Console.WriteLine("button1 Clicked"); | ||
+ | MessageBox.Show("button1 Clicked"); | ||
+ | } | ||
+ | </charp> | ||
==Home Work== | ==Home Work== |
Revision as of 19:50, 6 November 2007
Contents
Motorvehicle Diagram
http://iam.colum.edu/oop/browser/browser.aspx?f=/classsource/class7/Motor
Windows forms
Events
- events from a windows form or web page are handled by event handlers. Events are raised when a user interacts with interface elements and handled by the event handlers.
http://www.csharphelp.com/archives/archive253.html
Examaple of event handlers and classes
http://iam.colum.edu/oop/MotorvehicleRace.zip
<csharp> private void button1_Click(object sender, EventArgs e)
{ Console.WriteLine("button1 Clicked"); MessageBox.Show("button1 Clicked"); }
</charp>
Home Work
use Pair Programming to make tests and classes from the following UML
If you need to add any supporting methods or properties that are not on the diagram feel free.