Templates

The Smartpoint SDK Visual Studio templates can be used to quickly create a project. Once the template is downloaded, you have to put the template in the Visual Studio template directory.

  1. Download and unzip one of the templates:

  2. Navigate to the following directory, where xx is either 10 or 12, depending on the version of Visual Studio you are using:
    <User Directory>\Documents\Visual Studio 20xx\Templates\ProjectTemplates\
  3. Create a folder within the appropriate language folder.

    • For the C# template, create a folder (e.g., Travelport) within the C# directory, then copy the C# template you downloaded into this new folder.
    • For the VB.Net template, create a folder (e.g., Travelport) within the Visual Basic directory, then copy the VB template you downloaded into this new folder.
  4. From the Visual Studio File menu, select New, then Project. A window displays with available templates. The Smartpoint SDK templates display in the C# or Visual Basic directory within the folder you created in step 3.

Dependencies

This template has dependencies on the following DLLs:

  • Travelport.MvvmHelper
  • Travelport.Smartpoint
  • Travelport.TravelData

The template is using the following path for the DLLs (which is the default Smartpoint installation path): C:\Program Files (x86)\Travelport\Smartpoint

Default functionality

The following default functionality is available for a plug-in created using this template:

  • #CS/#VB WINDOW - Opens the window for retrieving the PNR.
  • #CS/#VB POPUP - Displays a pop-up.
  • #CS/#VB BF - Displays the current booking file locator.
  • #CS/#VB CON - Displays the current connection that Smartpoint is using.
  • #CS/#VB MSG - Displays a message box window.
  • #CS/#VB FLOW - Displays a flow document.