|
-
Dec 18th, 2006, 06:14 AM
#1
Thread Starter
Fanatic Member
More static class probs
Version 2.0 Framework
I have a Typed dataset which I wish to share across all forms in my windows application. I would like to create a single instance of the dataset using a static class with appropriate static methods.
I have been looking into this and I am finding the syntax a bit confusing. Maybe I am a bit silly but these signleton patterns keep cropping up in my research which is confusing the hell out of me.
All i want to do is :
When my application starts I need to initialize the dataset with something like :
myclass.mydataset.gogetthe data(); without instantiating.
then I want to reference it with :
myclass.mydataset.tables[0] e.tc e.tc
Can someone show me a simple example of the above and maybe clear up my confusion ?
Thanks In Advance Folks
Last edited by venerable bede; Dec 18th, 2006 at 06:49 AM.
-
Dec 18th, 2006, 09:42 AM
#2
Re: More static class probs
-
Dec 18th, 2006, 09:42 AM
#3
Re: More static class probs
(Just go for the fifth example)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|