mvp

Exceptions and model-view-presenter (C#)

I have implemented the MVP pattern (passive view) in my C# Forms application. In my case the model is a motor controller laser system, where the model actually is like a facade of two other models (one the motor control system, the other the laser system). My presenter is a mediator of model-events and methods to the view which handles...

[Microsoft.Practices.ObjectBuilder.CreateNew] <-- wats the use of this method

I have beed assigned to go through a reporting application(Dev in ASP.NET) that follows MVP Pattern and i see that the below line of syntax is used very often. [Microsoft.Practices.ObjectBuilder.CreateNew] can anyone let me know wat exact work this line does. Thanks much, Faraaz. ...

How to reduce duplication in code - If statements vs separate class

Let's say you have a website that lets you build an account with up to three different account owners. Each entry page for the owner is a separate aspx page. The first person has very different business rules than the second and third owners. The first will have more fields as well and different ones will be required for them but not f...

Have you ever seen someone try to implement the MVP pattern with ASP.NET Web Forms?

Have you ever seen someone try to implement the MVP pattern with ASP.NET Web Forms? And if so, how did they do it? I'm working with a code base that is more than 10 years old. Before I arrived, somebody tried to implement the MVP pattern with ASP.NET Web Forms. I'm just wondering if this is unique to my code base or if other...

How to test user experience with regard to long running background processes in a Windows Forms app?

I'm developing a .NET Windows Forms application. I use the model-view-presenter design pattern, passive view + supervising controller, to be more exact. The presenters in my application perform background operations, which can take several seconds (or longer) to complete. When the background process completes, the presenter invokes a c...

Discuss on MVC implementation on iPhone

Hi, Im a using the MVC pattern for a while on different frameworks such as (swing, android, gwt ...) Now, I'm learning the iPhone framework and I am quite surprised about MVC implementation. The questions I am asking are about the view and controller interaction. First of all, that's the way I conceive the MVC pattern : The view and...

Sample MVC / MVP winforms Application (Non Trivial)

I'm looking for a non-trivial example of MVC/MVP implemented in Winforms (C# .NET). I searched the website but getting only trivial examples, a little more would be helpful. I'm Particularly looking at ways to implement views (view for a master-child model) and controllers/presenters. ...

How to get url from RouteTable.Routes collection by key?

How to get url from RouteTable.Routes collection by key? ...

Nhibernate in MVP WinForms application implemented by Conversation per Business Transaction

Hello, I've started using nHibernate some time ago. But after some time I saw that something goes in wrong way. The application is written in MVP pattern. Whole application is 3-tier. I have a Repository layer, Service layer and MVP. Presenter is providing a SessionWrapper to services and then it's provided to repositories. So the whole...

Where to put animation code?

Animations are a strange mix of view and control, and they sometimes need to be synchronized with delays between them, callback to code, etc. So, without being specific to any particular GUI framework, where should I put my animation code in a MVC architecture? ...

MVP or MVC - Which one allows to write loosely coupled code?

Though I have gone through some articles regarding MVC and MVP, I am not able to take decision to write code with MVP or MVC pattern? Which pattern will allow us to write loosely coupled code? Can I assume Asp.Net web forms is MVP by default? ...

GWT MVP architecture advantages

Hi All, I am learning GWT and i have read at multiple places that using MVP architecture is best suitable to develop a GWT Application I have also read that its easy to do testing using the MVP ARCH.Can somebody explain me why its easy to do testing using the MVP architecture. Also i am working on a project using MVP and i find it ver...

validations in MVC / MVP

I'm new to MVC / MVP and learning it by creating a Winform application. I have to some extent created the Models, Presenters and Views... Now where do my validations fit. I think the initial datatype validation (like only numbers in Age field), should be done by view. Whereas the other validations (like whether age is within 200) shoul...

How do GWT 2.1 data presentation widgets work in conjunction with MVP?

The Data Presentation Widgets in GWT 2.1 seem to have it all sewn up: model, view and presenter. So how does all of this data presentation goodness fit in with MVP? For example; how might I associate presenter (aka Activity) instances with the nodes of a CellTree? And is that even something that I should be trying to do? EDIT (elaborati...