Crestron Active CNX Dokumentacja Strona 22

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 30
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 21
Software Crestron SDK for Microsoft
®
.NET Component
18 Software: Crestron SDK for Microsoft
®
.NET Component
Introduction & Tutorial – DOC. 6718A
How to Use the Code
The following examples show how the code can be used to initialize the ActiveCNX
component to connect to a device, handle join events and show connection issues.
These examples are taken from the example project opened in “Getting Started” on
page 3 of this manual. They are representative only and may not apply to your
situation.
Initialization
1. Establish your base classes (or libraries or namespaces) with the using
directive.
NOTE: It is only necessary to establish namespaces needed for your project.
using System;
using System.Diagnostics;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Threading;
using System.Windows.Forms;
using Data;
2. Establish the Crestron namespace.
using Crestron.ActiveCNX;
3. Establish the namespace of the example program.
namespace ActiveCNX_Test_Program
4. Initialize Form1 as required for Windows Form Designer support. This
block of code populates the IP ID combo box with all possible IP IDs,
creates the ActiveCNX() class object in memory, allows event handlers
to update the Received from Control System text box, as well as defines
event handlers.
Przeglądanie stron 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Komentarze do niniejszej Instrukcji

Brak uwag