public MainWindow() { InitializeComponent(); Title = Title.Put("IQFeed"); Trader = new IQFeedTrader(); //{ // LogLevel = LogLevels.Debug, // MarketDataAdapter = { LogLevel = LogLevels.Debug } //}; ConfigManager.RegisterService <IConnector>(Trader); Level1AddressCtrl.Text = Trader.Level1Address.To <string>(); Level2AddressCtrl.Text = Trader.Level2Address.To <string>(); LookupAddressCtrl.Text = Trader.LookupAddress.To <string>(); AdminAddressCtrl.Text = Trader.AdminAddress.To <string>(); DownloadSecurityFromSiteCtrl.IsChecked = Trader.IsDownloadSecurityFromSite; _securitiesWindow.MakeHideable(); _newsWindow.MakeHideable(); Instance = this; _logManager.Listeners.Add(new FileLogListener("log.txt")); _logManager.Sources.Add(Trader); }