Creating a Basic User Interface - .NET

Purpose

This example provides a simplified user interface to demonstrate the architecture of a TestStand user interface. The interface code demonstrates the following actions in a TestStand interface:

  • Provide functionality to TestStand controls by connecting them to manager controls
  • Register callbacks to execute when TestStand events occur

Example File Location

<TestStand Public>\Examples\Modifying User Interfaces\Creating a Basic User Interface\DotNet\Basic User Interface.sln

Highlighted Features

  • TestStand User Interface Controls
  • TestStand User Interface API

Major API

TestStand User Interface API

Prerequisites

You must have Visual Studio installed to execute this example.

How to Use This Example

Complete the following steps to run the example:

  1. Click Run to start the user interface.
  2. Notice that the control functionality matches the specified connections in the MainForm_Load method.
  3. Use the interface to open a sequence file and execute it. The execution displays in the executionView control if tracing is enabled.

Complete the following steps to review the sequences and steps in this example.

  1. Open Basic User Interface.sln in Visual Studio, then right click MainForm.cs and select View Code.
  2. Find the MainForm_Load method. Within this method, the TestStand UI controls are connected to manager controls to give them functionality. Refer to the in-line comments for more information.
  3. Double click MainForm.cs to view the designer. Select the ApplicationManager control, then click Events in the properties pane. Notice that callback functions have been specified for certain TestStand events. Double click the event callback to view the callback code.