C
codebreaker
I am new to OOP so please excuse this basic question!
I am writing a C# application for Windows Mobile (.net compact framework).
The application is basically a data-logger with a Bluetooth connection.
Besides the basic logging screen there are a number of auxiliary
configuration screens (forms) to set up things like the user name,
tolerances, operator language, Com Port number etc.... These settings will
need to be stored to file (or registry) when the application closes and read
when the application first runs.
Should these 'configuration settings' all be stored in a single 'object' and
the object passed to each form as a parameter, or should I make the members
of the configuration object 'global' by using the Static modifier so all
forms have access to the members?
I am writing a C# application for Windows Mobile (.net compact framework).
The application is basically a data-logger with a Bluetooth connection.
Besides the basic logging screen there are a number of auxiliary
configuration screens (forms) to set up things like the user name,
tolerances, operator language, Com Port number etc.... These settings will
need to be stored to file (or registry) when the application closes and read
when the application first runs.
Should these 'configuration settings' all be stored in a single 'object' and
the object passed to each form as a parameter, or should I make the members
of the configuration object 'global' by using the Static modifier so all
forms have access to the members?