PureMVC Architects Lounge

PureMVC Manifold => Standard Version => Topic started by: puremvc on July 05, 2008, 02:16:05



Title: Re: PureMVCMinimalisticFormsExample
Post by: puremvc on July 05, 2008, 02:16:05
Hi s0194,

Do you know THX-1137?

Seriously, it's cool that you got this going, and I'm sure some C# ready developers out there will be ripping through this in a snap, but I personally don't have Visual Studio installed, and can't see any binary to run and see what it does.

Would you like to tell us a little more about yourself and your project? The C# port could definitely use a demo at the moment, so I'd love to work with you to get this integrated into the PureMVC project if you'd like to donate it and the time to document it and and so forth.

Thanks,
-=Cliff>



Title: Re: PureMVCMinimalisticFormsExample
Post by: s0914 on July 07, 2008, 02:46:42
Hi,

I don't know TH... google says: this is a person :)

My example is a minimalistic sample of using puremvc in C# with one window (mainform). Some kind of application skeleton, so binary file and example of working is not very intresting :)

I relly need some good mvc freamework for windows forms, and puremvc is very fine sollution but Im affraid of small community intrested in :( .NET have already good mvc for asp (rails) but many people don't realize that mvc for forms is needed in that same way.

I'm developer and project manager in huge international company with over 12 years experience in IT sollutions. My free time is limited but I will be very happy if c# port promotion goes fine way.

best regards
Martin


Title: Re: PureMVCMinimalisticFormsExample
Post by: arrington89 on October 21, 2008, 12:00:14
Hello Martin,

Thank you for the Minimalistic Forms Example.  I found one particular problem with the current example.

It appears the ApplicationController is never registered with the Facade.

If you add the following code to the initilizeFacade() method in the ApplicationFacade class, then all is good.   8)

:
26     protected override void initializeFacade()
27     {
28         base.initializeFacade();
29         registerCommand(ApplicationController.STARTUP, typeof(ApplicationController)); // <-- New Line
30      }


Title: Re: PureMVCMinimalisticFormsExample
Post by: puremvc on October 26, 2008, 07:28:23
You shouldn't be registering a custom controller but a command.

Facade.registerCommand (should) take a string and a class reference, and that reference should be to an ICommand implementer class.

-=Cliff>