|
|
| | |
Events revisted Posted: 03 Aug 07 1:33 PM (Canada) |
| | |
I was trying to understand events (again :<) at work and after getting totally frustrated, I decided I needed to write a small test program. Very simple, short and to the point. I thought other people could use it if they found themselves in a similar situation as me.
The test prog has a main form that lists when an object is counting. The CountDown object does the counting as well as firing three different events (starting, counting by one and ending). There is another object (IntEventArgs) which is a bit of overkill for passing the current count int around, but so be it, that's how things are done at my work and I'm the one writting this, so be it. :>>>> The main form is the object that is catching the events being fired and displaying different messages in the listbox.
Enjoy. |
Testing.zip |
| |
| | .NET Development MCTS 70-536 Study Group Events revisted | | |
| | | |