Home  /  Questions  /  Question

58   94.9
Jun 14, 2011

Which Design Pattern do I need for this?


I am building a WinForm application.

I have a Main Form that contains many many other Forms with the same functionality except the name and the database connection.
I don't know how many forms we'll need to need to create, as they are created dynamiclly by the user. (Add method from the Main Form).

I suspect there is a Design Pattern for this... Does anyone have a suggestion?


50   50
Jun 30, 2011
Use composite pattern
ur form can contain ist of forms as its object

50   50
Jul 05, 2011
Composite Application Block best suits for this.

60   95.3
Jul 05, 2011
Composite Pattern is the ideal pattern....Your parent form can have list of other forms..