public RediMain() { TradeLink.API.TLServer tls; if (Properties.Settings.Default.TLClientAddress == string.Empty) tls = new TradeLink.Common.TLServer_WM(); else tls = new TradeLink.Common.TLServer_IP(Properties.Settings.Default.TLClientAddress, Properties.Settings.Default.TLClientPort); tl = new ServerRedi(tls); if (Properties.Settings.Default.AccountsAvailable != string.Empty) { tl.Accounts = Properties.Settings.Default.AccountsAvailable.Split(','); debug("Advertising static accounts: " + tl.Accounts); } TrackEnabled = Util.TrackUsage(); Program = PROGRAM; InitializeComponent(); tl.TickDebugVerbose = Properties.Settings.Default.TickDebuggingVerbose; tl.isAddingFuturesEXSpace = Properties.Settings.Default.isAddingFuturesEXSpace; tl.FuturesEXchanges = new List<string>(Properties.Settings.Default.FuturesEXchanges.Split(',')); tl.isPaperTradeEnabled = Properties.Settings.Default.PaperTrade; tl.isPaperTradeUsingBidAsk = Properties.Settings.Default.PaperTradeBidAsk; tl.VerboseDebugging = Properties.Settings.Default.VerboseDebugging; tl.SendDebug += new TradeLink.API.DebugDelegate(tl_SendDebug); tl.AutoConvertToSmart = Properties.Settings.Default.AutoConvertToSmartForAvailable; FormClosing += new FormClosingEventHandler(RediMain_FormClosing); }
public RediMain() { TradeLink.API.TLServer tls; if (Properties.Settings.Default.TLClientAddress == string.Empty) { tls = new TradeLink.Common.TLServer_WM(); } else { tls = new TradeLink.Common.TLServer_IP(Properties.Settings.Default.TLClientAddress, Properties.Settings.Default.TLClientPort); } tl = new ServerRedi(tls); if (Properties.Settings.Default.AccountsAvailable != string.Empty) { tl.Accounts = Properties.Settings.Default.AccountsAvailable.Split(','); debug("Advertising static accounts: " + tl.Accounts); } TrackEnabled = Util.TrackUsage(); Program = PROGRAM; InitializeComponent(); tl.TickDebugVerbose = Properties.Settings.Default.TickDebuggingVerbose; tl.isAddingFuturesEXSpace = Properties.Settings.Default.isAddingFuturesEXSpace; tl.FuturesEXchanges = new List <string>(Properties.Settings.Default.FuturesEXchanges.Split(',')); tl.isPaperTradeEnabled = Properties.Settings.Default.PaperTrade; tl.isPaperTradeUsingBidAsk = Properties.Settings.Default.PaperTradeBidAsk; tl.VerboseDebugging = Properties.Settings.Default.VerboseDebugging; tl.SendDebug += new TradeLink.API.DebugDelegate(tl_SendDebug); tl.AutoConvertToSmart = Properties.Settings.Default.AutoConvertToSmartForAvailable; FormClosing += new FormClosingEventHandler(RediMain_FormClosing); }