A
a
Hello Gang,
I am in a bit of confusion regarding a half completed application I am
writing. It is an MDI app, so I have a main form (frmMain) that is always
open.
I am looking for a 'Best Practice' here. I have a class (config.vb) that
manages an XML file with the applications configuration settings. I need to
access it from many places in the app. I have other similar classes
(onlineOffline.vb, dataAccess.vb, etc.) I only need one instance of each of
these. I am getting in trouble with whether to implement the Singleton
approach in the class itself, or keep one copy in the MDIParent form, and
reference it from there, or just use some Shared properties and methods.
I started making a bunch of Shared Subs, Functions, and Properties, and the
further I go, the messier it feels.
Please point me in the right direction. Looking for some Solid OOP
praactices here.
Thanks!
Kevin
I am in a bit of confusion regarding a half completed application I am
writing. It is an MDI app, so I have a main form (frmMain) that is always
open.
I am looking for a 'Best Practice' here. I have a class (config.vb) that
manages an XML file with the applications configuration settings. I need to
access it from many places in the app. I have other similar classes
(onlineOffline.vb, dataAccess.vb, etc.) I only need one instance of each of
these. I am getting in trouble with whether to implement the Singleton
approach in the class itself, or keep one copy in the MDIParent form, and
reference it from there, or just use some Shared properties and methods.
I started making a bunch of Shared Subs, Functions, and Properties, and the
further I go, the messier it feels.
Please point me in the right direction. Looking for some Solid OOP
praactices here.
Thanks!
Kevin