User Manual
PLUS System Manual Location Software Library 97
Proprietary Information: Do not disclose unless authorized under a Nondisclosure Agreement and the Partner Agreement.
4.7 C# Sample Application Overview
The C# sample application included in the PLUS software install package is intended to demonstrate how
to use the PLUS Location Software Library in a tracking application.
4.7.1 Operating the Sample Application
Figure 4-2: C# Sample Application Screenshot
The buttons on the form are arranged, from top to bottom, in the order they are commonly used.
Although some steps may be skipped depending on the situation, typically the user will select buttons
starting from the top and working down the form.
1. Select a PLUS Location Software Library configuration file using the Config file… button. If
replaying a raw logfile, this step may be skipped since the configuration is saved at the
beginning of raw logfiles.
The last configuration file used is saved in the system registry, so there is no need to repeat this
step until a different configuration file is desired.
2. Select the data source – either Get data from logfile (recorded/simulated data) or Get data
from network (live data). Once a data source has been selected, the Track button is enabled
and the application waits for further instruction before beginning any data processing.
3. Select Track to begin tracking Tags.
Whenever a Tag’s position is updated, a message will display at the bottom of the form with the
coordinates (in meters) of the position.
4. Selecting Reset State brings the software back to its startup state.
4.7.2 Code Walkthrough
The sample application was written in C# using Microsoft Visual Studio 2008. The main source code
file is MainForm.cs.
The sample application’s OCX initialization is performed in the constructor function of MainForm.