Professional Documents
Culture Documents
Agenda
Introduction
View – Presenter
Application controller
Service locator
Dependency injection
View Presenter
IView
Business logic
Presenter class
Business logic
Application controller
Work Item
Centralize flow and
navigation
Presenter, View and Controller
Problem: Tight coupling
Service locator
Dependency injection
Object 1
ClassA
Builder
2 3
Service
Application blocks
Composite Web AB
Page Flow AB
Object Builder
CWAB
Separation of
concerns
Modularity
Extensibility
CWAB Composition
CWAB Services
Page Flow AB
From
public void AttemptTransfer(decimal transferAmount)
{
if (transferAmount > MaxAmountWithoutApproval)
{
Response.Redirect("ApprovalRequired.aspx");
}
Response.Redirect("Confirmation.aspx");
}
StorePageFlow.Navigate("RegisterUser");
Guidance package
Available receipts
Install the Web Client
Software factory
f74a25561c47/Web%20Client%20Software%20Factory%20-%20June%202007.msi )
First step
Install WCSF dependencies
Install WCSF Source code
Modules in WCSF
DEMO
Benefits of Modularity
View Presenter
Model View Presenter
Pattern
Standard ASP. Net page MVP implementation
IView
Business logic
Presenter class
Business logic
Model View Presenter
Example
View-Presenter in WCSF
Example
Benefits of MVP
Demo
Resources