I am writing an application such that much like a 'login' screen - a selection screen appears before the main program. The options available are in a database and once the option is selected by the user, an object is returned with the database values.
After the selection screen, I finally enter my main "Application.Run(<MDI form>);" context. Because it is an MDI form and there are many children AND dialog forms, I might need to reference that object quite often.
I initially created an inherited form for all my sub-forms that would upon loading reference the "Parent" or "Owner" form and retrieve the object. The more and more I get into it, the more and more I can't stand this method. I would really just like to call something like the configuration settings with something like [MyApp.CurrentSelection] and just get the object reference.
However, I am unsure on how to accomplish this efficiently?
After the selection screen, I finally enter my main "Application.Run(<MDI form>);" context. Because it is an MDI form and there are many children AND dialog forms, I might need to reference that object quite often.
I initially created an inherited form for all my sub-forms that would upon loading reference the "Parent" or "Owner" form and retrieve the object. The more and more I get into it, the more and more I can't stand this method. I would really just like to call something like the configuration settings with something like [MyApp.CurrentSelection] and just get the object reference.
However, I am unsure on how to accomplish this efficiently?