protected override void OnLoad(EventArgs e) { base.OnLoad(e); // FIX app settings and related var settings = new SessionSettings("C:\\initiator.cfg"); // FIX application setup MessageStoreFactory storeFactory = new FileStoreFactory(settings); LogFactory logFactory = new FileLogFactory(settings); _client = new FixClient50Sp2(settings); IInitiator initiator = new SocketInitiator(_client, storeFactory, settings, logFactory); _client.Initiator = initiator; _client.OnProgress += _client_OnProgress; _client.LogonEvent += ClientLogonEvent; _client.MessageEvent += ClientMessageEvent; _client.LogoutEvent += ClientLogoutEvent; _client.OnMarketDataIncrementalRefresh += Client_OnMarketDataIncrementalRefresh; }