Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: cryptography question Pin
Furty18-Feb-03 16:09
Furty18-Feb-03 16:09 
GeneralRe: cryptography question Pin
jtmtv1818-Feb-03 16:57
jtmtv1818-Feb-03 16:57 
GeneralPassing various Controls by ref Pin
draco_iii18-Feb-03 10:56
draco_iii18-Feb-03 10:56 
GeneralRe: Passing various Controls by ref Pin
Nnamdi Onyeyiri18-Feb-03 11:29
Nnamdi Onyeyiri18-Feb-03 11:29 
GeneralRe: Passing various Controls by ref Pin
Kannan Kalyanaraman18-Feb-03 19:00
Kannan Kalyanaraman18-Feb-03 19:00 
GeneralRe: Passing various Controls by ref Pin
leppie18-Feb-03 23:14
leppie18-Feb-03 23:14 
GeneralRe: Passing various Controls by ref Pin
Richard Deeming19-Feb-03 0:49
mveRichard Deeming19-Feb-03 0:49 
GeneralA tough design decision Pin
Chris Austin18-Feb-03 8:28
Chris Austin18-Feb-03 8:28 
Hey folks,

I am working on a multi-threaded windows app and I have run into a bit of a design snag. I’d like to follow a MVC type of design as much as possible; so I want to separate all of the business and event handling logic from the form.

To do this without passing references to controls and forms all over the place, it looks like a Mediator is the sure fire way to go. But, the downside of the classical Mediator is that all the controls must extend (or implement) a “Colleague” base class in order to be aware of the Mediator. I really don’t want to have to subclass every possible control that I might use.

Does anybody have some insight to share on this one? Is there another approach that I am missing?

[edit]
An idea I have is to implement the Mediator using an Observer to force the UI to update in response to events.
[/edit]

TIA
Chris


But I, being poor, have only my dreams.
I have spread my dreams under your feet;
Tread softly, because you tread on my dreams.
- Yeats

GeneralRe: A tough design decision Pin
Philip Fitzsimons19-Feb-03 1:55
Philip Fitzsimons19-Feb-03 1:55 
GeneralRe: A tough design decision Pin
Chris Austin19-Feb-03 3:59
Chris Austin19-Feb-03 3:59 
GeneralRe: A tough design decision Pin
Stephane Rodriguez.19-Feb-03 3:05
Stephane Rodriguez.19-Feb-03 3:05 
GeneralRe: A tough design decision Pin
Chris Austin19-Feb-03 3:48
Chris Austin19-Feb-03 3:48 
QuestionRecommendations for a commercial .NET Grid product? Pin
Zombies with Coffee, LLC18-Feb-03 5:38
professionalZombies with Coffee, LLC18-Feb-03 5:38 
AnswerRe: Recommendations for a commercial .NET Grid product? Pin
Nnamdi Onyeyiri18-Feb-03 6:44
Nnamdi Onyeyiri18-Feb-03 6:44 
AnswerRe: Recommendations for a commercial .NET Grid product? Pin
Kannan Kalyanaraman18-Feb-03 19:05
Kannan Kalyanaraman18-Feb-03 19:05 
AnswerRe: Recommendations for a commercial .NET Grid product? Pin
Alexander Kojevnikov19-Feb-03 6:39
Alexander Kojevnikov19-Feb-03 6:39 
GeneralRe: Recommendations for a commercial .NET Grid product? Pin
Atul Kale20-Feb-03 3:52
Atul Kale20-Feb-03 3:52 
GeneralA little help with MDIParent event process..... Pin
LongRange.Shooter18-Feb-03 5:30
LongRange.Shooter18-Feb-03 5:30 
GeneralRe: A little help with MDIParent event process..... Pin
Atul Kale20-Feb-03 3:40
Atul Kale20-Feb-03 3:40 
GeneralIf someone needs modified code of ShellPopupMenu(UtilityLibrary) FoldersTree context menu Pin
Alexei Prokudin18-Feb-03 4:41
Alexei Prokudin18-Feb-03 4:41 
GeneralIcon for MenuItems in ContextMenu displayed in NotifyIcon in Systemtray Pin
rund1me18-Feb-03 4:20
rund1me18-Feb-03 4:20 
GeneralRe: Icon for MenuItems in ContextMenu displayed in NotifyIcon in Systemtray Pin
jtmtv1818-Feb-03 17:09
jtmtv1818-Feb-03 17:09 
GeneralRe: Icon for MenuItems in ContextMenu displayed in NotifyIcon in Systemtray Pin
rund1me19-Feb-03 20:38
rund1me19-Feb-03 20:38 
GeneralWindows Media Player Pin
antoine@orchus-tech18-Feb-03 3:57
antoine@orchus-tech18-Feb-03 3:57 
GeneralRe: Windows Media Player Pin
Kannan Kalyanaraman18-Feb-03 18:56
Kannan Kalyanaraman18-Feb-03 18:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.