Actions

AlphaCom SDK Stentofon.AlphaCom.Example.Stations.exe

From Zenitel Wiki

Revision as of 10:31, 10 June 2009 by Kjellove (talk)

AlphaCom SDK Example2 - Station Handling

About the application

AlphaComSDK ExampleAppConfig.JPG
AlphaComSDK ExampleApp2.JPG

The application is a Windows Forms project with two Forms, the Main Window and Config window for inserting the IP address of the AlphaCom. The application config file is the default config file for the Stentofon.AlphaCom.AlphaNet.dll named Stentofon.AlphaCom.AlphaNet.xml defined in the namespace Stentofon.AlphaCom.AlphaNet.Config.

If no config file at startup the application will open the config window. The config window can also be opened by clicking the 'Config' button in the Main Window.

The AlphaNetClient object is initialized with the AlphaNetClientConfig object contaiong the IP address etc. The AutoDiscoverAllNodes and AutoGetStationState properties is also set to get all StationState objects:

// Do Get node info and station information for all nodes in AlphaNet.
_client = new AlphaNetClient(_formConfig.ClientConfig) { AutoDiscoverAllNodes = true, AutoGetStationState = true };