Show/Hide Toolbars

Flynet Viewer Developer User Guide

Navigation: .NET Class Generation

Class Members and Use

Scroll Prev Top Next More

Now that you have added the generated assembly for your screen definition file, you have access to a number of class members based on the names of your screens, screenmaps and fields.

 

EnumerationsKeep track of all the "hooks" into your screen-based application
Classes and StructuresFor each FieldMap a unique class or structure
MethodsRead and Write field maps and manage fields
PropertiesSome indexed arrays and other useful properties

 

 

Enumerations

 

You also have a number of enumerations defined which help avoid the need for memorizing or referring to outside lists of screens, maps and so on.  These include:

 

ScreenID

One for each screen, integer based

MapID

One for each screenmap, integer based

FieldID

One for each field.  Mapper ensures that fields of the same name have the same length definition, so if a field has the same name but a different length than the first definition of that field, it will have the mapname, an underscore and the field name in the FieldID enumeration

 

The enumerations are namespace scoped, so you have simple access to them using the enumeration name.  For example, the HostScreen.getScreenID() method will return an integer that you can cast to a ScreenID, as follows:

 

clip0021