uwe habermann [email protected] venelina jordanova [email protected] programming vfp code in the...

11
Uwe Habermann [email protected] Venelina Jordanova [email protected] Programming VFP Code in the front-end of Silverswitch applications

Upload: isis-castleton

Post on 16-Dec-2015

222 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

Uwe [email protected]

Venelina [email protected]

Programming VFP Code in the front-end of

Silverswitch applications

Page 2: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

GUINEU

Page 3: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

GUINEU?

* Use VFP code in Silverlight client projects

* So in browsers at the client side

* Runs on Mac OS X and in the future on other platforms

Page 4: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

GUINEU

* Developed by Christof Wollenhaupt

* www.GUINEU.net

* VFP runtime developed in C#

* Adapted version for Silverswitch client applications

* Exclusive in Silverswitch

* 1 DLL

* Execute VFP code in FXP file

Page 5: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

GUINEUWhat can be done with it?* Business logic

* Control of the Silverlight user interface

* But:* No VFP user interface

* (Messagebox, Wait Window, …)

* No data access

* But these are not restrictions!

Page 6: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

GUINEUIntegration in Silverswitch* Wrapper-project

* VfxGuineuRuntime

* FXP file* Save in folder VFPCode* Build: embedded resource

* PRG file (to edit with VFP)* Open with VFP as default* Build: none

Page 7: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

GUINEU

* Declaration

using VfxGuineuRuntime;private readonly VfxGuineu _fox = new VfxGuineu("<Name>.FXP");

Page 8: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

GUINEU

* Function call

_fox.Do("<function name>", <parameter 1>, <parameter 2>, …);

* The first parameter is the function name

* Following parameters are passed to the function

Page 9: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

GUINEU

* Passing parameters* Also objects!

* Many VFP functions

* Many VFP commands

* Execution of C# methods

* No child objects available

Page 10: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

GUINEU

* Examples in VFPizza* Customers GUINEU* Orders GUINEU

* Get value of property

* Set value of property

* Save (in C#?)

Page 11: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Programming VFP Code in the front-end of Silverswitch applications

C#

* Examples in VFPizza* Customers C#* Orders GUINEU

* Save

* Navigation

* And more…