C# Common Data Question

Velox

Gawd
Joined
Dec 13, 2000
Messages
904
I'm making a windows forms project in C#, and could use some advice. I have a class that holds data that is used by most of my other classes (Forms). What would be the best way to handle this class? Should I have it as a static member of a static class?

Should I leave it in the Parent class, and do a lot of casting? If so, I can't use the constructor to initialize the data in the class, but have to use the Loading event instead, since the Parent of the window isn't known at construction time. I'm trying to avoid passing the parent around to my constructors like a cheap whore.

Just hoping someone has some experience in this matter, and can advise in the nice way to handle this. =)
 
Back
Top