AZGroups.com

Bringing together Arizona Technology Users And Enhancing the Careers of Developers
Welcome to AZGroups.com Sign in | Join | Help
in Search

MVP :: Model View Presenter Design Pattern

Last post 10-04-2006, 8:44 PM by scottcate. 1 replies.
Sort Posts: Previous Next
  •  10-02-2006, 4:42 PM 621

    MVP :: Model View Presenter Design Pattern

    This session starts off with a simple ASP.NET "Frequently Asked Questions" application. The first application is a level 100 application that directly binds the user interface to the database. Then we'll abstract the data layer away from the Application. This is about as far as most people go when writing web applications and the UI ends up tightly coupled with the application. So we'll go a step farther. Let's abstract the UI layer away from the application, so the application is no longer dependant on the UI. Finally to prove this theory, we'll build a new UI with Windows Forms that binds to our application.

    At the end of our presentation you will have been introduced to the "Model View Presenter (MVP)" design pattern.

    We'll be at UAT for this session from 6pm-9pm in the theatre room.

  •  10-04-2006, 8:44 PM 624 in reply to 621

    Re: MVP :: Model View Presenter Design Pattern

    Attachment: AZGroups-MVP.zip

    Here is the code we created for the session.

    And here is the notepad/powerpoint for the session.

    Create DataBase
    Add rows to new table.

    Create Data Project
    -- Add DataSet

    Create View Project
    -- Create Interface

    Create Presenter Project
    -- reference Data and View Projects
    -- Create Presenter
    -- -- Has View as ReadOnly property
    -- -- set View through CTor()
    -- -- Has Retrival Method

    Create Web Project
    -- reference Presenter and View Projects
    -- add controls to web page
    -- implement View Interface
    -- has presenter as private;
    -- -- populated in onint = new Presenter(this) passed in as interface

    Build Run

    Create Win Project
    -- Add controls to form
    -- Add project references to View and Presenter
    -- Implement view interface
    -- setup presenter

    -=- Scott Cate

    October 4th, 2006
    8:44pm

  • View as RSS news feed in XML
    Powered by Community Server, by Telligent Systems