Dofactory.com
Dofactory.com
 Back to list
Views:   13.7K
Replies:  3
Archived

Which Design Pattern do I need for this?

Hi,

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?

Thanks
David Kt, Jun 14, 2011
Reply 1
Composite Pattern is the ideal pattern....Your parent form can have list of other forms..
Venkatesh D, Jul 05, 2011
Reply 2
Composite Application Block best suits for this.
Sri P, Jul 05, 2011
Reply 3
Use composite pattern
ur form can contain ist of forms as its object
Nunu Kohli, Jun 30, 2011
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.