简体   繁体   中英

what is the design pattern of WinForm

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM