VisionCore ICE Architecture
Previous pagePrevious Print this TopicPrint

Visual Studio 2005 Project Configuration

This topic discusses configuring your Visual Studio .NET 2005 development environment to use the VisionCore Integrated Code Expansion Application Programming Interface (ICE API).

 

Including the VisionCore API Assemblies

The way in which you access the assemblies that form the VisionCore API differs in the build environment and at runtime. In your development or build environment, you must add the following into your projects references:

ComtechSolutions.Controls
ComtechSolutions.VisionCore.Configuration
ComtechSolutions.VisionCore.Common
ComtechSolutions.VisionCore.Security

Then add the necessary VisionCore API Components you would like to use in your project.  For windows applications a method ComtechSolutions.VisionCore.Security.LoginForm.Show() can be used to initialize all settings of the VisionCore System.

 

However, adding a reference to an assembly creates a hard link between your code and the assembly.  This can cause that code to break should the assembly be located in a different directory at runtime.  This is almost certainly the case with both add-ins and vertical applications for VisionCore.  Therefore, your code should not rely on its references to actually load the assembly at runtime.  Instead, you should use the registry to locate the directory containing the assemblies, create an application domain in which the assemblies can be loaded, and use reflection to dynamically load referenced Dlls.

 

Importing the Namespaces of VisionCore ICE Types

Rather than provide fully qualified references to each VisionCore ICE type in your type declarations, you should use the Imports statement in Visual Basic .NET or Using statement in C# to import the namespaces in which VisionCore types reside.

 

 

VB

  Imports ComtechSolutions.VisionCore.Sales.Forms

  Imports ComtechSolutions.VisionCore.Sales.Brl

  Imports ComtechSolutions.VisionCore
 

 

C#

  Using ComtechSolutions.VisionCore.Sales.Forms;

  Using ComtechSolutions.VisionCore.Sales.Brl;

  Using ComtechSolutions.VisionCore;

 

The ComtechSolutions.VisionCore namespace contains all modules and base system components of VisionCore.
 

The ComtechSolutions.VisionCore.[ModuleName].Links namespace contains all of the methods of showing forms of the module that are used to programmatically work with the VisionCore Windows User Interface layer.
 

The ComtechSolutions.VisionCore.[ModuleName].Forms namespace contains the interfaces that are of interest primarily to developers of UI add-ins for VisionCore, in addition to developers of external applications who want to take advantage of existing forms in the VisionCore user interface.
 

The ComtechSolutions.VisionCore.[ModuleName].Brl namespace contains all of the classes, interfaces, and enumerations that comprise the VisionCore API and that are used to programmatically work with the VisionCore business rules/logic layer.
 

 

 


Page url: http://www.comtechsolutions.com/csdemos/ice_sample/index.html?visualstudio2005projectconfiguration.htm