I have an example with a bunch of logic in my GUI class (winforms). I am going to reorganize this so that there is no logic in gui, and a separate class adheres to all the logic.
What is this template? Say I had a form class called AddAddressForm, what would you call an associated file that contains logic? AddAddressMediator (not quite suitable for this template), if I were doing WPF, I would call it ViewModel (but it is not).
It sounds like a model-view-controller without a part of the model.
, . - Windows Forms, , , :
, - MyFormLogic, , ( , AddButtonClicked AllItems)
MyFormLogic
AddButtonClicked
AllItems
(Yay easy unit testing!), MyFormLogic , , . ( )
, , 1 , 1 , ( , - )
, .
Flyweight Pattern.
, Model-View-Presenter. asp.net, WinForm.
http://msdn.microsoft.com/en-us/magazine/cc188690.aspx
MVP 2 , , MVP.
, , Conditonal Logic, , Factory.
2- , /, , , .
.
Model-View-Controller (MVC). , , Address.
. , , ; ( ) .
, Humble View.
. Humble View GUI Architectures martinfowler.com.
, , - Model-View-ViewModel, WPF. , ViewModel , View ViewModel. WPF, ; MVVM. - .
Sounds like your main separation of concerns, breaking up presentation and functionality into different files. I’m not quite sure if this really falls under any template for a review, but it reminds me that web forms are lithium-bit with views and codes.
Source: https://habr.com/ru/post/1765744/More articles:Will Apple reject my application to use setStatusBarOrientation? - iphoneПочему файлы в моей папке NSBundle для iPhone не удаляются? - fileConfiguring SESSION Logged Data - Security? - securityUnable to delete files from mainBundle - iosWhat is the fastest way to rotate an image without cropping its edges using GDI +? - c #Changing LAN settings from a batch file and / or C #? - c #interesting programming technology from the old days - language-agnosticЯвляется ли хорошей практикой позволить Hibernate автоматически создавать таблицы, используя create? - hibernateHow can I opt out of our advanced text to speech? - .netQuestion on EventHandler from Josh Smith's MVVM sample application - c #All Articles