For example, I have a TreeView user control on my main form. I want to
enable/disable various things on the MenuStrip and ContextMenuStrip based on
the state of things in the TreeView (basically, what kind of node is
selected). Looking for ideas on what the best design pattern is for this.
Quick and dirty is to pass references for the menu strips to the user
control and let it set enable/disable on the menu items as state changes,
but that feels like a hack. I guess the classic Observer pattern is called
for? I don't want to make this overly complex, I just want a more elegant
solution than tightly coupling the classes (reuse isn't an issue however).