Difference between revisions of "OOP Class8"

esse quam videri
Jump to: navigation, search
(Windows forms)
(Examaple of event handlers and classes)
Line 26: Line 26:
 
             MessageBox.Show("button1 Clicked");   
 
             MessageBox.Show("button1 Clicked");   
 
         }
 
         }
</charp>
+
</csharp>
  
 
==Home Work==
 
==Home Work==

Revision as of 19:50, 6 November 2007



Motorvehicle Diagram

Oop 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");   
       }

</csharp>

Home Work

use Pair Programming to make tests and classes from the following UML

OOP Students Classes Diagram

If you need to add any supporting methods or properties that are not on the diagram feel free.