Categories

System version

6.05.95.85.75.65.55.4

Creating actions library

Introduction

Before you begin, see the article about Navigator.Extension.dll. This will allow you to better understand the creation of actions and their handling. The article is available here.

Preparing the action

Constructing your own set of actions should start with creating a new project in the Visual Studio and defining a class whose static methods will correspond to individual actions. You have to remember that the class and its methods, which are to be actions, should be public (they have the keyword “public”).

The obligatory argument of actions that perform a write to the system database is an object of the SqlManager class. This class is defined in the Navigator.Model.Global.Database namespace. To use the NAVIGATOR System Model, the Navigator.Model library in the version compatible with the application version must be attached to the project. The number of external libraries that we want to connect to the project is not limited by the application. However, they must, like the action library, be loaded into the system (Settings -> Personalization -> Extensions). The remaining arguments, apart from the obligatory one, should be simple types of the C# language.

The last required element is to mark the library as an action set by assigning the appropriate value to the attribute from the AssemblyInfo.cs file:

Uploading actions to the system

After compiling the project to the library, upload it to the system in the Settings -> Personalization -> Extensions module using the Add button.

Table of Contents

Menu