I would suggest having some type of Manager/Application class that all
of your UI classes have a reference to. You would have to pass it to
every constructor that needed information. Chances are some class will
need something else from the application besides credentials. When
that happens, you can change your Manager class so that those items can
be retrieved from it.
Hiran Chaudhuri - 25 Dec 2005 11:25 GMT
>I would suggest having some type of Manager/Application class that all
> of your UI classes have a reference to. You would have to pass it to
> every constructor that needed information.
Instead of passing around all these references to the Manager/Application it
is easier to have the Manager/Application class be static (with all fields
and methods) or create a singleton pattern.
Just my 0.02?...