I'm writing a client app that's a bit similar to MS Excel - It has one menu bar , and you have several inner frames , each frame is a file in one of several states.
The basic flow is this : After opening a file , you can click on build , and after the build is completed you can export/save it (others scenarios are more complex).
What I'm interested in is how to change the state of the menu buttons every time you switch between frames: if you haven't pressed the "build" yet , the "export" should be disabled , but if you switch to a window where you've already pressed the "build" button and it's built , the "export" button should be enabled.
Is there a design pattern for handling something like this? Any Best Known Methods?