Application Design

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • archway

    #1

    Application Design

    Hi,

    I am writing an application whereby there is an object model that holds the
    data for the application, which is then saved to file. Now, ideally I would
    like to open this file and deserialize the object model when the application
    loads and then keep this object structure open throughout the duration of
    the application.

    A couple of questions:

    * Is this a good architecture?
    * How would you make the object model available to the entire WinForm app?
    * How would you instantiate it when the application loads?

    Thanks in advance for any advice!


  • John Kennedy[MSFT]

    #2
    RE: Application Design

    Definitely sounds like a case for XML. Use the XMLDocment class you can
    quickly load and save a file, as well as programatically access any node
    from any part of your application.

    john

    Comment

    Working...