C# Class XTAPI_Samples.frmMonitorGateways

MonitorGateways This example demonstrates using the XTAPI to monitor the status of TT Gateways.
Inheritance: System.Windows.Forms.Form
Show file Open project: tradingtechnologies/CodeSamples_XTAPI_CSharp

Public Methods

Method Description
frmMonitorGateways ( ) : System

Upon the application form loading, setup the TTGate object and subscribe to the events.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AboutMenuItem_Click ( object sender, System e ) : void

This function displays the About dialog box.

ConnectButton_Click ( object sender, System e ) : void

Open each server that is selected for the exchange.

DisplayStatusUpdate ( string sExchange ) : void

Publish the gateway statuses to the GUI

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Main ( ) : void
gatewayComboBox_SelectedIndexChanged ( object sender, System e ) : void

This event is triggered when the user selects a different exchange.

m_TTGate_OnExchangeMessage ( string sExchange, string sTimeStamp, string sInfo, string sText ) : void

This event is triggered when the gateway sends a informational message.

m_TTGate_OnExchangeStateUpdate ( string sExchange, string sText, int bOpened, int bServerUp ) : void

This event is triggered when the state of a TT Gateway changes.

m_TTGate_OnStatusUpdate ( int lHintMask, string sText ) : void

This event is triggered when the connection with X_TRADER changes.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

frmMonitorGateways() public method

Upon the application form loading, setup the TTGate object and subscribe to the events.
public frmMonitorGateways ( ) : System
return System