TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Moose Pickard
NA
64
70.4k
Can't figure out the event workings with my program
Sep 23 2010 3:42 PM
Hi
I've gotten further with my program and now need to interconnect the pieces.
My program has many CarRental services, which all can rent cars in and out between them.
Diagram:
http://www.flickr.com/photos/54126948@N08/5017934457/
I was thinking about the problem and I came up with some ideas. I don't know if they are ok.
One class can have only one event? Is the event way the right way to do this?
There is a CarRentalEventArgs class, which creates the car object, and also has, int rentLenght, owner ID.
This CarRentalEventArgs object is then passed into different methods of the CarRental class, if the ownerID = MyID then the Car is returned by the renter, if the ID's don't match, then it is rented by the same CarRental, that picks up the event.
I am however stuck now. I don't know what to do.
Are there any good tutorials? Or is there some logic to follow?
Reply
Answers (
4
)
how to send sms through windows application?
Getting IP of the device i'm connecting to