Home > Software design >  what is the design pattern of WinForm
what is the design pattern of WinForm

Time:01-30

I'm studying design patterns. I wondered what the design pattern of the project was basically created when I created the WinFoam project in the Visual Studio. what is the design pattern of winform when I create new winform project in visual studio?

CodePudding user response:

I suppose that no pattern is used for Form1.Designer.cs and Form1.cs. It is just boilerplate code. As wiki says:

In computer programming, boilerplate code, or simply boilerplate, are sections of code that are repeated in multiple places with little to no variation.

However, when you are creating handler for button click, then Observer pattern is used to connect button and its handler.

  • Related