MVP: Application of separation of interface and business logic in winform

Source: Internet
Author: User

MVP: The interface and business logic are separated inWinformApplication in

 

MVP,Model-View-presenter.

InMsdnDownload an example,Http://www.microsoft.com/china/msdn/library/architecture/architecture/architecturetopic/MVP.mspx? MFR = true

Implementation structure adopted


 

InBlog http://www.agilelabs.cn/blogs/wind_tower/archive/2006/01/26/626.aspxSee the implementation structure


 

InC #In the development environment, Data Binding can be used to improve the interface development efficiency. In this way,ViewTo provide a data source, useMsdnThe structure defined above makes it easier to implement.

at the same time, multithreading is used to improve the response to customer requests. Because View Data Binding and presenter multi-threaded business logic, need to access simultaneously View in this way, for some specific multi-threaded processing requirements, presenter refresh View Public function, not fully implemented: presenter after the business logic is updated, View automatically refresh

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.