J
James Morton
I am writing a c# windows forms application. I read in an XML file to a
dataset for read-only access (by the user and the application logic).
This is not an MDI app but has LOTS of seperate forms. They all need to get
to tables within this DataSet. How can I make the DataSet "Global" for all
forms within the application. I could just read in the file in every form to
a newly instanced dataset (the XML is not that large) but this has become a
rather intriguing design issue for me. It seems their is some "correct" way
to have a DataSet global in memory for the entire application so your not
copying schema and data in client memory for every new form thats opened.
My main thought is to create a class for the dataset, make the dataset
static and declare an instance of the class in all of the forms. I
appreciate any feedback, help, etc.
dataset for read-only access (by the user and the application logic).
This is not an MDI app but has LOTS of seperate forms. They all need to get
to tables within this DataSet. How can I make the DataSet "Global" for all
forms within the application. I could just read in the file in every form to
a newly instanced dataset (the XML is not that large) but this has become a
rather intriguing design issue for me. It seems their is some "correct" way
to have a DataSet global in memory for the entire application so your not
copying schema and data in client memory for every new form thats opened.
My main thought is to create a class for the dataset, make the dataset
static and declare an instance of the class in all of the forms. I
appreciate any feedback, help, etc.