Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. How to handle Different Modules in MVP ??

How to handle Different Modules in MVP ??

Scheduled Pinned Locked Moved WPF
csharpwpfarchitecturedatabasedesign
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krishna Aditya
    wrote on last edited by
    #1

    I am designing an UI Application with WPF (XAML and C#). This application interacts with Database(sqlserver 2008) too. This app is a tool for the project. I have to implement this with CAB architecture and Model-View-Presenter(MVP). If I have functionalites like 1. Uploading data to database 2. Downloading data from database. then, My questions are : 1. What will Model, View and Presenter roles in these applications. How the interfaces between these modules happen? Is it I have to Create IModel (interface) b/w presenter and Model, IView (interface) b/w presenter and view? So, my codebehind will have only events calls (like btn_click) ?? Which module handles Database access? I know I asked lot of questions, but I have made the UI ready for the rest of the work flow . I am sorry if many questions are put in one place. I will be so glad, if I can get answers for all the things. Kindly help me. Thank you, Ramm

    L 1 Reply Last reply
    0
    • K Krishna Aditya

      I am designing an UI Application with WPF (XAML and C#). This application interacts with Database(sqlserver 2008) too. This app is a tool for the project. I have to implement this with CAB architecture and Model-View-Presenter(MVP). If I have functionalites like 1. Uploading data to database 2. Downloading data from database. then, My questions are : 1. What will Model, View and Presenter roles in these applications. How the interfaces between these modules happen? Is it I have to Create IModel (interface) b/w presenter and Model, IView (interface) b/w presenter and view? So, my codebehind will have only events calls (like btn_click) ?? Which module handles Database access? I know I asked lot of questions, but I have made the UI ready for the rest of the work flow . I am sorry if many questions are put in one place. I will be so glad, if I can get answers for all the things. Kindly help me. Thank you, Ramm

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I would suggest some background reading on the MVP/MVVM patterns as there is something of a learning curve to get this right. You may like to start with Model View Presenter, and perhaps The Model-View-ViewModel.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups