B
Brett Romero
I'd like feedback on using an app.config file to store static
information such as company name, database name, etc. then use a DLL to
load it. I want to put everything into enumerators. This is a winform
app. I'd like to avoid having to create an instance to access this
information. In other words, using only static methods.
The DLL allows me do any related additional processing specific to only
the static info. This seperates the static information from the
application and keeps it from attaching itself to one of the winforms
via instantiation. In other words, the winform app will use a non form
class as its startup object. The non form class will call the DLL, do
any additional processing, and load the first form. Does any one see
problems doing this?
XML or config file:
Will I need to load from the config file everytime since the methods
are static? Example?
Thanks,
Brett
information such as company name, database name, etc. then use a DLL to
load it. I want to put everything into enumerators. This is a winform
app. I'd like to avoid having to create an instance to access this
information. In other words, using only static methods.
The DLL allows me do any related additional processing specific to only
the static info. This seperates the static information from the
application and keeps it from attaching itself to one of the winforms
via instantiation. In other words, the winform app will use a non form
class as its startup object. The non form class will call the DLL, do
any additional processing, and load the first form. Does any one see
problems doing this?
XML or config file:
Will I need to load from the config file everytime since the methods
are static? Example?
Thanks,
Brett