Which design pattern for this problem?

  • Thread starter Thread starter pompair
  • Start date Start date
P

pompair

Hi,

I'm making a a .net 2.0 gui application. In one screen the app needs
fill a groupbox with many different kind of ui controls (listboxes,
editboxes, comboboxes, labels, buttons) according to set of rules.

So the question goes: What is the best design pattern for this kind of
a situation?

Thanks for any suggestion,

-pom-
 
"pompair" <[email protected]> a écrit dans le message de (e-mail address removed)...

| I'm making a a .net 2.0 gui application. In one screen the app needs
| fill a groupbox with many different kind of ui controls (listboxes,
| editboxes, comboboxes, labels, buttons) according to set of rules.
|
| So the question goes: What is the best design pattern for this kind of
| a situation?

Class Factory.

Joanna
 
Class Factory.

Thanks Joanna for the hint. I'll look into that. I presume you are
referring to "Factory Method", because I didn't find a pattern with
that name from GoF Design Pattern reference...?

-pom-
 
"pompair" <[email protected]> a écrit dans le message de (e-mail address removed)...

| Thanks Joanna for the hint. I'll look into that. I presume you are
| referring to "Factory Method", because I didn't find a pattern with
| that name from GoF Design Pattern reference...?

Sorry, the GoF book calls it Abstract Factory.

Joanna
 
Back
Top