33
Uwe Habermann [email protected] Venelina Jordanova [email protected] Migration of a VFP application into a Silverswitch solution

Uwe Habermann [email protected] Venelina Jordanova [email protected] Migration of a VFP application into a Silverswitch solution

Embed Size (px)

Citation preview

Page 1: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Uwe [email protected]

Venelina [email protected]

Migration of a VFP application into a

Silverswitch solution

Page 2: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Silverswitch

Page 3: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Silverswitch

* Rapid Application Development development environment for Silverlight* Silverswitch.sln

* Migration of VFP applications* VFX – Silverlight Wizard

* Visual Extend for VFP re-developed in C#

Page 4: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Silverswitch

* Supported databases* VFP* SQL Server* MySQL, ADS, DB2, Oracle, …

Page 5: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Silverswitch

* Programming* C#* VFP at the server side with COM server

* Powerful method call even from client side

* VFP at the client side with GUINEU* Execution also on Mac OS and in the future

on other platforms

Page 6: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

SilverswitchWhat does it contain?

* Template application Silverswitch.sln

* Start page

* Wizards* Update Project

* Builders* DataGrid, PickField, Form

* VFX – Silverlight Wizard* Included in VFX for VFP

Page 7: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Migration to Silverswitch

* VFP projects

* VFX projects

Page 8: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Requirements for theVFX – Silverlight Wizard

* Database* Primary keys for all tables

* Dataenvironment* Tables* Cursoradapters* No views* No programatical used tables

Page 9: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Requirements for theVFX – Silverlight Wizard

* All controls in the form* No instantiation of controls at runtime

* VFP projects* Base classes of controls are migrated

* VFX projects* VFX classes of controls are migrated

Page 10: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Requirements for the development

* Visual FoxPro 9

* VFX 13 and Silverswitch

* Visual Web Developer 2010 Express* Optional: SQL Server (Express)

* Silverlight 4 Tools

* WCF RIA Services 1 SP1

* Silverlight 4 Toolkit

Page 11: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Requirements at the customer‘s side

* Client* Silverlight 4 Plug-In (6 MB)

* Server* Windows Server* Internet Information Server* .Net Framework 4.0

Page 12: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Creation of aSilverswitch application

* Create new projectbased on template project“Silverswitch”

* Don’t execute, don’t build

* Run VFX – Silverlight Wizard

Page 13: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* What does this wizard do?

* Explanation

* VFP COM server is generated

* Administrator rights required!

Page 14: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* Select Silverswitch solution

Page 15: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* Data access

* Create ADO.NET Entity Data Model

* Create Domain Service

* Create and register VFP COM server

Page 16: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* Settings of the application object

* Add VFX forms to table Vfxfopen

Page 17: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* Select forms

* Forms marked as included into the project get migrated by default

* VFX*.scx forms do not get migrated

Page 18: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* Project names for forms

* Forms can be summarized to projects

* Optimization of project size and download size and time

Page 19: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* Select form properties

* Layout similar to VFP -> select all properties

* Hard-coded property values cannot be overwritten by styles

Page 20: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* Select reports

* Reports, marked as included into the project, get migrated by default

Page 21: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* Finish!

* Success messageorLog

* Test!

Page 22: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Features of theSilverswitch application

* Prepared frame for the application

* Splash screen

* Optional login dialog

* Toolbar with XAML icons

* Data-driven open dialog

* Internet application

* Intranet application

Page 23: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Features of theSilverswitch application

* User login

* Runtime localization

* User management

* User rights

* User groups

* MDI user interface

Page 24: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Features ofgenerated forms

* Autoedit

* New, edit, delete, save, undo

* Navigation

* Sort and incremental search in DataGrid

* Resizable, minimize, maximize

Page 25: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Features ofgenerated forms

* Treatment of update conflicts

* Filter dialog

Page 26: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

What does theVFX – Silverlight Wizard do?* Add forms to the solution

* Entry in table Vfxfopen

* Migration of forms* MVP Model-View-Presenter

Page 27: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

What does theVFX – Silverlight Wizard do?* Example

* Customer.xaml* Layout

* Customer.xaml.cs* Settings

* CustomerController.cs* Developer’s code

* CustomerControllerBase.cs* Generated code

Page 28: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

What does theVFX – Silverlight Wizard do?* Generates VFP COM server

* Data access to VFP database using cursoradapters

Page 29: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFX – Silverlight Wizard

* Video tutorial (in German) available at

* www.MSDN-Solve.de

* and on the memory sticks

Page 30: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFPizza in the Cloud

* Inform!

* Create account

* Create SQL Server database

* Make project settings

* Publishing with Visual Studio wizard

* 2 virtual maschines recommended

* http://VFPizza.CloudApp.net

Page 31: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

VFPizza in the Cloud

* Video tuorial (in German) available athttp://www.MSDN-Solve.de

* and on the memory sticks

Page 32: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Any questions?

Page 33: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migration of a VFP application into a Silverswitch solution

Break

Venelina & Uwe