Which design pattern to manage windows?

Posted by Lu Lu on Stack Overflow See other posts from Stack Overflow or by Lu Lu
Published on 2010-05-11T03:16:13Z Indexed on 2010/05/11 3:34 UTC
Read the original article Hit count: 338

Filed under:
|
|

Hello, I am using .NET 2.0 & C# to develop a WinForm Mdi application. It will have a Main Window and a lot of mdi windows. I am thinking I should use which design pattern to manage mdi windows. Because I want only one instance for each window, if window is existed, I will show it on top, & otherwise I will create and show it.

Note: a mdi window is opened from Menus of Main Window or open from another mdi window. An example is very good.

Update: Menu's status is depended on mdi window's status. Ex: If Window 'A' is openned -> menu 'A' -> disabled. When window 'A' is closed -> I update menu 'A' status to Enabled.

Thanks.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#