MVC / MVP for .NET WinForms Applications

Does anyone know the applicable MVC / MVP environment for enterprise WinForms applications?

Before there was an application block for the user interface for .NET . But it is not being developed yet since the Windows Workflow Foundation (which will also be completely rewritten with .NET 4.0) is released.

I may not be updating, but it seems to me that at the moment there is a gap.

+6
c # windows frameworks winforms
source share
10 answers

Have you tried MVC # ? I started using it a while ago, but the project fell on the sidelines, so I can not vouch for it - sorry!

EDIT: I just found this article , which also looks pretty good.

+5
source share

We use MS Smart Client Factory software. It provides IDE integration, full support for MVC, and once you get to the concepts behind it, this is a very competent implementation. You can get it from: http://msdn.microsoft.com/en-us/library/aa480482.aspx

+3
source share

Smart Client Factory Software?

0
source share

I always rode on my own - this is not very difficult, and the more I am in "control" of my code base, the better I feel.

I'm just wondering how the MVC framework, say CastleWindsor or the like, will work.

This is probably not the most useful of the answers, but just interesting if you have already considered this option!

0
source share

I did not like that Prism, CAB or SmartClient were too complex and eventually poured my own implementations.

Over time, some common patterns appear. They are reused from application to application. Here is an example: DDD and forced user interface validation using rules in Windows.Forms with MVC .

0
source share

I am connecting my own framework: TrueView for .NET . It is based on the DDD template and Naked Objects.

At the very least, using this to create quick prototypes is a great way to get decent feedback from your business users.

0
source share

All of these standard frameworks are not suitable for large complex applications, and they assume that the displays will be static. I developed my own, and also because of the general requirement that screen controls must be dynamic, even MVC / MVP templates assume that the display will be static, so when the fields filled in the control depend on which user role has MVC / MVP models are not suitable. I developed a tool in which you can create screens from loading business objects and their properties into the database, then the user simply selects the objects and object properties that she wants to display, the control can consist of any number of control groups, each control group can contain any property of a business object, business objects are generated from my Linq ORM views. Therefore, the control displays only the fields of the control groups to which the user has access. You can also use Aspect-centric programming to provide an MVC pattern, but when displays need to be dynamic depending on the role, this overhead is likely to add a bit to great complexity and performance.

0
source share

As well as TrueView, as well as Naked Objects for .NET . It supports client / server mode and the web viewer (based on the Java equivalent viewer) is currently migrated.

Depending on what properties / actions are available for a given user / role, this is done dynamically in Bare Objects. There are three types of predefined business rules: 1. Is the item visible? 2. is the member useful? 3. is a member change (new property value or action parameter) valid? Or, more emphatically: can you see it? can you use it? you can do that? The Naked Objects programming model allows these rules to be specified both declaratively and strongly.

Even if you complete your domain model in your own user interface layer, I recommend that you take a look at NO.

Greetings

Dan Haywood

author: "A project managed by a domain using bare objects", pragprog.com

0
source share

I have successfully used the following open source project to implement the MVP pattern in ASP.NET + WinForms + C #:

  • Castle project.

Take a look at my blog post that shows a complete example of an ASP.NET web application:

View Presenter model with lock in ASP.NET

0
source share

All Articles