private void Mt_ConnectionStateChanged(object sender, Mt5ConnectionEventArgs e) { if (e.Status == Mt5ConnectionState.Connected) { Console.WriteLine("Create HLine"); var l = CreateHorizontalLine(); Console.WriteLine(l); } }
private void mMtApiClient_ConnectionStateChanged(object sender, Mt5ConnectionEventArgs e) { ConnectionState = e.Status; ConnectionMessage = e.ConnectionMessage; RunOnUiThread(ConnectCommand.RaiseCanExecuteChanged); RunOnUiThread(DisconnectCommand.RaiseCanExecuteChanged); switch (e.Status) { case Mt5ConnectionState.Connected: RunOnUiThread(OnConnected); break; case Mt5ConnectionState.Disconnected: RunOnUiThread(OnDisconnected); break; } }
public void mMtApiClient_ConnectionStateChanged(object sender, Mt5ConnectionEventArgs e, MtApi5Client mt) { if (mt.ConnectionState == Mt5ConnectionState.Connected) { } }
void apiClient_ConnectionStateChanged(object sender, Mt5ConnectionEventArgs e) { ConnectionStateChanged.FireEvent(this , new ConnectionEventArgs(ConvertConnectionState(e.Status), e.ConnectionMessage)); }
private void mMtApiClient_ConnectionStateChanged(object sender, Mt5ConnectionEventArgs e) { policyInterface.mMtApiClient_ConnectionStateChanged(sender, e, mt); }
private void ConnectionStateChanged(Object sender, Mt5ConnectionEventArgs e) { Console.WriteLine(e.ConnectionMessage); }