Results 1 to 3 of 3

Thread: More static class probs

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    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.

    Parksie

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width