473,769 Members | 8,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

model view presenter examples

Dan
Hi

Am interested in learning more about Model View Presenter (MVP) design.
Specifically to create an application using vs2005 with winforms that use
webservices to process business logic. I want a stateless system ( wireless
required), so I can then development a front end for the pda client, then
webclient. From what I've read so far it should be easier to replace the
gui for a pda\webclient with MVP design with minimal rewrite of front end
code.

Am after some more reading material, or any example code that implement MVP
with winforms if anyone can point me in the right direction. I've read lots
on the Martin Fowler website, and on msdn but I'd like some more example
code before I plough on with my project without any solid coding examples -
am just trying to make sure I know what am doing ( although am expecting a
rewrite about a third of the way through!)

Also, are there any recommended books that cover this for dotnet that are
any good?

thanks

dan
Apr 3 '07 #1
1 8651
Hello Dan,

See there http://www.codeproject.com/info/sear...&ed=3+Apr+2007

and http://ameleta.spaces. live.com/blog/cns!5F6316345A8 21420!163.entry

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

DHi
D>
DAm interested in learning more about Model View Presenter (MVP)
Ddesign. Specifically to create an application using vs2005 with
Dwinforms that use webservices to process business logic. I want a
Dstateless system ( wireless required), so I can then development a
Dfront end for the pda client, then webclient. From what I've read so
Dfar it should be easier to replace the gui for a pda\webclient with
DMVP design with minimal rewrite of front end code.
D>
DAm after some more reading material, or any example code that
Dimplement MVP with winforms if anyone can point me in the right
Ddirection. I've read lots on the Martin Fowler website, and on msdn
Dbut I'd like some more example code before I plough on with my
Dproject without any solid coding examples - am just trying to make
Dsure I know what am doing ( although am expecting a rewrite about a
Dthird of the way through!)
D>
DAlso, are there any recommended books that cover this for dotnet that
Dare any good?
D>
Dthanks
D>
Ddan
D>
Apr 3 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
2768
by: Droolboy | last post by:
I'm trying to build a fairly small (max. 10 different pages) site using php, and it's becoming obvious that I need some kind of model view separation. Having done a few searches, I've come across the concept of 'template engines', but that seems like overkill for my needs. I'm thinking I'll just stick with php as my template language; a little embedded code in the view pages, for loops or whatever, should be ok.. I've come up with the...
7
8792
by: pysim | last post by:
Hi, I have a couple of general requests for pointers to python examples and design advice. I'm looking for examples of MVC-based GUI controls done in python (model-view-controller). Also, examples where something like a simulation model running in its own thread sends fast updates to a GUI in near real-time. The only examples I've seen, such as SimPy, wait until the model is finished running before outputting data.
6
4618
by: Robert W. | last post by:
I'm building my first major C# program and am try to use best practices everywhere. So I've implemented the "Document/View Model" whereby: - There's a Windows Form, which we'll call "formView" - There's a Class, which we'll call "classDocument" Thus, when an instance of each the form and the class are instantiated, they each will hold the same data, albeit be independent of each other. To keep the two in perfect sync with each other,...
5
1327
by: Jeff S | last post by:
I'm implementing the Model View Presenter (MVP) pattern in a Windows Forms application. There is a need to control which forms (views) are accessible by specific users, and for some forms (views) to enable/disable/hide controls for certain users or groups. For sake of this question, please go with the model being a Person object and the view enabling users to modify Person properties. 1. What would be a good way to have the view appear...
10
4521
by: Sean Chambers | last post by:
Hello, I am attempting to utilize the MVP pattern in a new app I am building. I am using TDD, along with mock views attached to the View interface to attempt to unit test the UI. The problem I am having is when using the InitView() of the presenter, normally I would be retrieving data from NHibernate when InitView is called. Therein lies the problem, I can't seem to figure out how to properly
1
2250
by: peter shaw | last post by:
Hi, I have a solution, that includs a project. The project have some folder, (like folder1, folder2, folder3,...). Inside folder there is a view and view presenter. Directly under project, there is modulcontroller that controls load win forms etc. In the moduleControoler I show a form like this: string key = "_abc";
12
7502
by: Doug | last post by:
Hi, I learned a little about the model view presenter pattern at a conference this last week and am experimenting with it. It's working pretty well but I have a question. I am trying to use it to reset info in a combo box. Below is some sample code for my view interface and the presenter: public interface IDevToolView
6
2055
by: Bill44077 | last post by:
Hi, I am new to the MVP pattern and one of the main reasons that we are going this route is because we are doing Scrum with 30 day sprints - so we have a continually morphing design. We are using TDD as well to improve our ability to refactor... you probably all know this approach. Although the user iterface is supposedly one of the last things that you need to do, this is a web app and we have multiple nested Repeaters on the page....
8
1757
by: Charles Law | last post by:
This is a sort of pattern question, but relating to how components are coupled in a three-tier system. I have a presentation layer, business layer and data access layer, the first is the EXE, whilst the other two are implemented as DLLs. The EXE also references a DLL that contains various user controls, one of which is based on a grid control. The coupling is currently like this:
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.