D
Descartes
Dear All,
Coming from another development environment, it appears that I bang my
head in the wall on very basic matters, so I hope you can give me a
push in the right direction.
The application that I work on will consist of
- a mainform with a usual menu and toolbar and not much more.
- a number of modal data editing forms with various edit controls, an
OK button and a Cancel button
- an instance of a data class containing some 50 fields of various
types.
My question relates to the fact that C# doesn't accept "global"
variables, so the data class can not be instantiated directly in the
namespace.
Where and how would you instantiate the data class so that the editing
forms can access the data?
Regards
Descartes
Coming from another development environment, it appears that I bang my
head in the wall on very basic matters, so I hope you can give me a
push in the right direction.
The application that I work on will consist of
- a mainform with a usual menu and toolbar and not much more.
- a number of modal data editing forms with various edit controls, an
OK button and a Cancel button
- an instance of a data class containing some 50 fields of various
types.
My question relates to the fact that C# doesn't accept "global"
variables, so the data class can not be instantiated directly in the
namespace.
Where and how would you instantiate the data class so that the editing
forms can access the data?
Regards
Descartes