Architecture of multi form project using c# WinForm

431 views Asked by At

I´m about to develop a multi form project with let´s say ten forms. I want it to have a base frame which holds

  • navigation controls and a menue structure
  • small information section
  • and main section where numerous forms will be displayed.

so its two or three smaller windows and one big window with the functional form.

The windows should be dockable and able to interact with the frame. Some windows might have parts that are not displayed for everyone (user no, admin yes). The forms should hold various data from an sql or oracle server.

Which techniques would you use to get everything synchronized?

Out of the blue I would use this structure to get the project working:

  • MDI Application with a docking extension (developer express for example)
  • User Controls if the Mainframe itself has "dynamic" fields to display
  • Own Navigation class (which holds a history of opened forms)
  • Global Connection Class which queues connection to databse
  • MVC pattern for data handling with the help of the queue class

How can the forms interact with the frame? I thought of using

  • interfaces and inheritance (every form must have getData, navigateNext etcetc. function that gets called by the frame)
  • linking varaibles (Childform -> Frame | Frame -> ChildForm) so the form can easily interact

is there a tutorial for something like this out there? (I found tutorials for the different techniques but don`t know if they will work together)

has anyone suggestions / additions?

0

There are 0 answers