uwe habermann [email protected] venelina jordanova [email protected] migrating vfp forms with the free...
TRANSCRIPT
![Page 2: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/2.jpg)
Agenda Saturday
2:15 - 3:30 Migrating VFP forms with the free Silverlight Wizard of the dFPUG
3:45 - 5:00 Migration of a VFP application into a Silverswitch solution for Visual Studio
5:15 - 5:45 Extending a Silverlight application with a webcam and multi-touch
5:45 - 6:30 Usage of VFP code in the back-end of Silverswitch applications
![Page 3: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/3.jpg)
Agenda Sunday
8:30 - 9:45 Programming VFP Code in the front-end of Silverswitch applications
10:00 - 11:15 Conversion of a VFX application into a Silverswitch solution
11:30 – 12:15 Converting reports to Silverswitch and running VFP reports in Silverswitch
12:15 – 12:45 What else do I need to know
![Page 4: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/4.jpg)
* Uwe Habermann* Diplom-Informatiker* FoxPro Entwickler
seit FPW 2.5* MCP für Visual FoxPro
* Uwe Habermann* Diplom-Informatiker* FoxPro Entwickler
seit FPW 2.5* MCP für Visual FoxPro
* Venelina Jordanova* Master Degree in CS* FoxPro Entwicklerin
seit FPD 2.0* MCP für SQL Server
und Application Architecture
* Venelina Jordanova* Master Degree in CS* FoxPro Entwicklerin
seit FPD 2.0* MCP für SQL Server
und Application Architecture
Who is talking?
![Page 5: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/5.jpg)
V&U Ltd. – We and You* Development in Varna, Bulgaria
* Projects with VFP and Silverlight* Visual Extend, Silverswitch
* High quality for low prices
* www.VandU.eu
![Page 6: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/6.jpg)
One year since SWFOX 2010
* Visual Studio 2010, Silverlight 4
* Migration of existing VFP applications with wizards to Silverlight
![Page 7: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/7.jpg)
One year since SWFOX 2010
* dFPUG – Silverlight Wizard
* VFX – Silverlight Wizard
* Silverswitch
![Page 9: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/9.jpg)
Migrated application* Internet application
* Desktop application
* Execute VFP Code* At the client* At the server
* Supported databases* DBC* SQL Server
* MDI user interface
![Page 10: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/10.jpg)
Why Silverlight?
* Internet applications
* Desktop applications
* Platform independent
* Data binding
* Execution of VFP Code
* Use of VFP databases
![Page 11: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/11.jpg)
Why Silverlight?
* Modern user interface* XAML* Multi-touch support* Animations, reflections, shadows…
![Page 12: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/12.jpg)
Why Silverlight?
* Fulfills all wishes of VFP developers
* FREE development tools
* FREE distribution to customers
![Page 13: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/13.jpg)
What is Silverlight?
* Silverlight is a powerful development platform for creating engaging, interactive user experiences for Web, Desktop and mobile applications when online or offline
![Page 14: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/14.jpg)
Requirements for developers
* Visual FoxPro 9
* dFPUG – Silverlight Wizard
* Sedna – Upsizing Wizard
* Visual Web Developer 2010 Express
* SQL Server 2008 (Express)
* Silverlight 4 Tools
![Page 15: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/15.jpg)
Requirements for customers
* Client* Silverlight 4 Plug-In (6 MB)
* Server* Windows Server* Internet Information Server* .Net Framework 4.0
![Page 16: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/16.jpg)
Example
* Migration of Tastrade
* VFP sample application
* Uses VFP database
* Coming not complete with lastversions of VFP
* But complete on the memory sticks
![Page 17: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/17.jpg)
Tastrade
* A short view at Tastrade
![Page 18: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/18.jpg)
What does the dFPUG – Silverlight Wizard
do?* Migration of the layout and the
data binding of forms
* Generation of Silverlight forms into a Silverlight Business Application
* Generation of links to start forms
![Page 19: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/19.jpg)
What does the dFPUG – Silverlight Wizard
do?* Works with any VFP application
* Any?
![Page 20: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/20.jpg)
Requirements for thedFPUG – Silverlight Wizard* Database
* Primary key in every table
* Dataenvironment* All tables* No views or cursoradapters* No programmatical use of tables supported
![Page 21: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/21.jpg)
Requirements for thedFPUG – Silverlight Wizard* All controls in the form
* No programmatical instantiation of visual controls at runtime
* Migration of base classes of controls
* No migration of code
![Page 22: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/22.jpg)
dFPUG – Silverlight WizardHow does it work?
* Upsizing to SQL Server
* Create Silverlight Business Application* ADO.NET Entity Data Model* Domain Service
* dFPUG – Silverlight Wizard
* Test
* Business logic
![Page 23: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/23.jpg)
SQL Server Upsizing Wizard
* Use Upsizing Wizard of Sedna!* http://vfpx.codeplex.com/wikipage?title=Sedna
* Upsize VFP database to SQL Server* Structure* Data
![Page 24: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/24.jpg)
Create aSilverlight Business
Application* New project
* Data model (connection, data access)
* Domain service (web service)
![Page 25: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/25.jpg)
New project
* Template project* Silverlight Business Application
![Page 26: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/26.jpg)
What does it contain?
* Client project (Tastrade)* Silverlight project* Forms
* MainPage.xaml* Home.xaml* About.xaml
![Page 27: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/27.jpg)
What does it contain?
* Server project (Tastrade.Web)* Startup project, start page* Folder for data model* Folder for domain service* Tastrade.xap
* First test
![Page 28: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/28.jpg)
Add data model
* ADO.NET Entity Data Model
* Connection to SQL Server database* Server: .\SQLEXPRESS* Database: Tastrade
* Build project!
![Page 29: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/29.jpg)
Add domain service
* Domain Service Class* Actually web service
* Select tables* General rule: set all checkmarks
* Code for data access gets generated* A short view at the code
* Build solution!
![Page 30: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/30.jpg)
The server project is ready!
Now the client projectand is done by thedFPUG – Silverlight
Wizard
![Page 31: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/31.jpg)
dFPUG – Silverlight Wizard
* Freeware
* On the memory sticks * FREE migration of VFP projects to
Silverlight* Layout of forms* Execution of forms
![Page 32: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/32.jpg)
dFPUG – Silverlight Wizard
* 1. What does this wizard do?
* 2. Select VFP project
* 3. Select Silverlight Business Application
* 4. Select forms
* 5. Select properties* Properties, which should be set by styles,
should not be migrated
![Page 33: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/33.jpg)
dFPUG – Silverlight Wizard
* Finish!* Forms are opened in the VFP Form Designer* Controls are read* Silverlight forms are created
* Test
![Page 34: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/34.jpg)
Where can I run the application?
* Windows* Internet-Explorer* Firefox* Chrome* Opera* (Safari
officially not supported)
![Page 35: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/35.jpg)
Where can I run the application?
* Mac OS* Safari* Firefox* Chrome* Opera
![Page 36: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/36.jpg)
Where can I run the application?
* In the future on Linux* Firefox* Chrome
* Right now Silverlight Plug-In Version 3.99
![Page 37: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/37.jpg)
The result
* Migrated layout
* Execution possible
![Page 38: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/38.jpg)
A short view at the generated files
* <form name>.xaml
* <form name>.xaml.cs
* MainPage.xaml
* MainPage.xaml.cs
![Page 39: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/39.jpg)
What to do now?Code examples
* SaveemployeeDomainDataSource.SubmitChanges();
* NextemployeeDomainDataSource.DataView. MoveCurrentToNext();
* PreviousemployeeDomainDataSource.DataView. MoveCurrentToPrev();
![Page 40: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/40.jpg)
Advantages
* Quickly and simply generated base for a Silverlight development
![Page 41: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/41.jpg)
Restriction
* Silverlight application runs with* SQL Server database* But not with VFP database
![Page 42: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/42.jpg)
dFPUG – Silverlight Wizard
* Video tutorial (in German) available athttp://www.MSDN-Solve.de
* and on the memory sticks
![Page 43: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/43.jpg)
Any questions?
![Page 44: Uwe Habermann Uwe@VandU.eu Venelina Jordanova Venelina@VandU.eu Migrating VFP forms with the free Silverlight Wizard of the dFPUG](https://reader037.vdocuments.site/reader037/viewer/2022110205/56649c995503460f949569eb/html5/thumbnails/44.jpg)
Thank you very much andhave fun with VFP and
Silverlight
Venelina & Uwe
Uwe Habermann [email protected] Venelina Jordanova [email protected] Was muss ich sonst noch wissen?
Uwe Habermann [email protected] V&U Project Tools Beauty Studio Venelina Jordanova [email protected]