c# - Design pattern for a single form Windows Forms application -


My app is expanding, but requests give instructions that only one window is open at all times, about nodepad Think, there is a menu, each menu item has different functionality, but unlike Excel, a window is open at all times, where a user may have some window open.

So in the context of the Windows Form, I was thinking of placing a form within a main form, so I can load an embedded form based on the user menu option or I can use the main form (and their events I would like to add control over the dynamically user menu option). I will use an presenter class for that.

This is only two solutions I will use whether you have any suggestions / experience for people to do this better?

I now know that I have to re-write some parts of my app, but let's start with the debate.

Do not include the form, it is not what forms are and it is not necessary.

Place the UI of your modules / sections on UserControls, it maintains good and modular and you keep your options open: Mainframe or MDI in hair window or in tab pages or directly to user control (at one time 1) Can be embedded ...

An interface to implement a base user control and / or general functionality.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -