mvp

Can the Presenter of Web Client Software Factory(WCSF) and Smart Client Software Factory(SCSF) shared and how?

Web Client Software Factory(WCSF) and Smart Client Software Factory(SCSF) both use MVP pattern. M-Model can be shared. V-View has to be different as both are on different platform(Desktop/Web). I want to know can the P-Presenter can be shared or can I be exactly same for both and how. ...

Exposing Rich Domain Objects as a service

I’ve been trying to wrap my head around how to expose my domain objects to the client. Whether I’m using a rich client or I’m using the web, I want to use the MVP and repository patterns. What I’m trying to wrap my head around is how I expose my repository and model, which will be on the server. Is it even possible to expose complex b...

Where do we instantiate view and presenter in Passive View on WinForm?

I am new to Passive view, I would like to know if we have master and detail form on WinForm application. So when the user clicks on master's button, it will shows the detail form. Where do we instantiate view and presenter? I don't think, we instantiate at code behind of form. But if we instantiate at presenter's method, it means we coup...

MVP Pattern: should multiple Presenters be decoupled or can they communicate directly?

I have a ui that looks like this: +--------+---------------+ | model1 | model details | | model2 | here, | | model3 | loaded as the | | | user selects | | | a model from | | | the left. | | | | +--------+---------------+ I'm using the MVP patte...

What are some patterns for creating views and controllers in an MVC or MVP app?

I'm working on a MVC/MVP GUI for editing a document. The document has a tree structure, with some nodes representing text, others images. The app model also includes a command stack, with commands operating directly on the model. Since different nodes have radically different controls, I'm planning on implementing individual MVC/MVP t...

Implementing MVC with Windows Forms

Where can I find a good example on how to completely implement the MVC pattern in Windows Forms. I found many tutorials and code examples on various sites (e.g. CodeProject, .NetHeaven) but many are more representative for the observer pattern than MVC. Since the application I want to develop is for a school project, I am reluctant to us...

How to further decouple this WPF example toward MVC, MVP, or MVVM?

I've decoupled events in this WPF application in the following way. What is the best way to continue decoupling? Shell.xaml: <Button x:Name="btnProcess" Content="Process" Margin="10"/> Bootstrapper.cs: public void Run() { Shell shell = new Shell(new Customer()); shell.Show(); } Shell.xaml.cs: public Shell...

MVP on Asp.Net WebForms

I'm not clear about this.... When having a gridview on the View, is the controller who has to set up the Data source, columns, etc? or I just have to expose the DataBinding stuff, fire it from the controller and let the html/codebehind on the view handle all the rendering and wiring up? To be more precise: on the view should I have p...

MVP on semi-complicated pages

Hi, I'm working on .NET 3.5 form application with slightly complicated behaviour. It's for a book inventory. To give you an idea, a workflow would be: The user enters an ISBN code If the ISBN is valid, check whether it exists, If it's valid and it exists, show book details and enable save button, if not, show 'add book'-button, If it'...

The Taligent Programming Model for .Net

Has anyone created a control architecture using the taligent programming model as follows? http://www.wildcrest.com/Potel/Portfolio/mvp.pdf The question is how do you implement or map the IInteractor concept (Page 9) to a .net interface? Currently the guess is to use the IInputElement interface as a the event source for all UI input co...

How do you navigate between views in MVP using C# WinForms?

As I understand, when we use MVP we move all presentation logic to the Presenter. But we don't want to let the Presenter know about view implementation, so how can we navigate to another screen in the application? How do you manage application flow on your real application? ...

C# Noob - Triggering event in mocked interface class - How does this code work?

I'm a little confused at what's going on here. I'm looking at the Puzzle example from Atomic Object showing how to test a Model-View-Presenter pattern Puzzle.zip The View has a private event. The view also has a Subscribe(delegate) function that adds the delegate to the event. The Presenter is passed in an IView and an IModel. Duri...

ASP.NET MVP and AJAX posting/webservices

When applying the MVP pattern to ASP.NET applications, where does using AJAX to post data fit? Of what I know of the MVP pattern, the UI is simply that(appearance), and all the heavy lifting is done in the presenter. I don't see how you could follow the pattern and still use AJAX interacting with web services on the client. Does anyon...

Refactoring WinForm ClickNCode to MVP Passive View

I'm attempting to refactor an existing Winform application to use the MVP Passive View pattern. The application's UI, business logic and data storage code have been freely intermingled for years. It looks like it either started out with separate layers or someone attempted to separate it into layers. In any case the layer boundaries were...

Using Model-View-Presenter pattern in a MFC application

I work in the ui of a "quite" big MFC application. We tried to split the application in modules to isolate the business logic but anyway there are still many places where the ui has some business logic that shouldn't be there. This business logic is difficult to test and changing a control is sometimes a real pain. But...you all know wh...

MVP and multiple User Controls

I’m trying to use the MVP pattern and I’m running into a design problem. I’m developing an application that will have several UserControls. The UserControls themselves have nothing to do with one another and only represent a subset of the actual model. From what I’ve read, people tend to say you should use one Presenter per View. Thi...

Desktop mono app and MVC/MVP framework

I am looking for a MVC/MVP (mvp prefferably) framework for my first mono app. There doesn't seem to be too much out there, but I have found the following: http://www.mvcsharp.org/ http://desktoprails.osl.ull.es/doku.php I've been looking into both for some time, and MVC# seems to be closer to what I want. The issue is that MVC# seem...

(MVP Pattern) How to forward error messages from Presenter to View?

Hello, I have a method where the user can search for a article number and if its available in the database the articlenumber gets bound to a BindingList. Now I want to let the user know if the article is not available in database. How do I do that the right way? Just pass the message errorMessage to my interface method? Presenter: st...

An best practice example of an MVP implementation of Unit Testing (in VB.Net)

Can anyone point me towards a complete scenario using MSTest,vb.net, with or without mocks,MVP (supervising controller) thanks ...

FxCop + MVP: "Properties should not be write only"

Suppose I'm implementing an MVP pattern and I have a view interface as such: interface IView { string SuperRadString { set; } } There's no reason for the presenter to ever need to retrieve this string from the view, so can I safely ignore this error? ...