public void initTTUSAPI() { UpdateStatusBar("Initializing..."); m_TTUSAPI = new TTUSApi(TTUSAPI.TTUSApi.StartupMode.Normal); //Create an Instance of the TTUSAPI m_TTUSAPI.OnConnectivityStatusUpdate += new TTUSApi.ConnectivityStatusUpdateHandler(m_TTUSAPI_OnConnectivityStatusUpdate); //Callback for getting TTUS Server status m_TTUSAPI.OnLoginStatusUpdate += new TTUSApi.LoginStatusHandler(m_TTUSAPI_OnLoginStatusUpdate); //Callback for login update m_TTUSAPI.OnInitializeComplete += new TTUSApi.InitializeCompleteHandler(m_TTUSAPI_OnInitializeComplete); //Callback for api initialization m_TTUSAPI.OnCurrencyUpdate += new TTUSApi.CurrencyUpdateHandler(m_TTUSAPI_OnCurrencyUpdate); m_TTUSAPI.OnCurrencyExchangeRateUpdate += new TTUSApi.CurrencyExchangeRateUpdateHandler(m_TTUSAPI_OnCurrencyExchangeRateUpdate); this.btnConnect.Enabled = false; this.btnUpdateRate.Enabled = false; }