Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Re: PureMVCMinimalisticFormsExample  (Read 8924 times)
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« 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>

Logged
s0914
Newbie
*
Posts: 2


View Profile Email
« Reply #1 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
Logged
arrington89
Newbie
*
Posts: 1


View Profile Email
« Reply #2 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      }
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #3 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>
Logged
Pages: [1]
Print