- Jun 16, 2000
- 30,213
- 12
- 81
Ok, I've got a main program, that acts simply as a container to hold three objects...two forms(both which interact with the user, and a controller, which interacts with the forms & with some hardware. All three objects need two way communication with each other. Initially, I thought I would set the controller up as an observer, and the forms as observable, but with two way communication, I'd need all of them to be both observers and observable, which doesn't really seem like good style. I then thought I could make custom event handlers, have each object hold a command queue, and trigger an event in the main program whenever a command queue is updated, which then informs the appropriate object. Which of these do you think would be better? Or is there another way I haven't thought of?
Oh, this is a .NET windows project in C#.
Oh, this is a .NET windows project in C#.
