public DataCaptureWindow() { this.InitializeComponent(); this.tssProviderStatus.Alignment = ToolStripItemAlignment.Right; this.cbxMarketDepth = new CheckboxToolStripItem(); this.cbxMarketDepth.CheckBoxText = "MarketDepth"; this.toolStrip1.Items.Add((ToolStripItem) this.cbxMarketDepth); this.cbxBars = new CheckboxToolStripItem(); this.cbxBars.CheckBoxText = "Bars"; this.toolStrip1.Items.Add((ToolStripItem) this.cbxBars); this.cbxQuotes = new CheckboxToolStripItem(); this.cbxQuotes.CheckBoxText = "Quotes"; this.cbxQuotes.Checked = true; this.toolStrip1.Items.Add((ToolStripItem) this.cbxQuotes); this.cbxTrades = new CheckboxToolStripItem(); this.cbxTrades.CheckBoxText = "Trades"; this.cbxTrades.Checked = true; this.toolStrip1.Items.Add((ToolStripItem) this.cbxTrades); this.instruments = new Hashtable(); this.isRunning = false; new Thread(new ThreadStart(this.RunQueue)) { IsBackground = true }.Start(); }
public DataCaptureWindow() { this.InitializeComponent(); this.tssProviderStatus.Alignment = ToolStripItemAlignment.Right; this.cbxMarketDepth = new CheckboxToolStripItem(); this.cbxMarketDepth.CheckBoxText = "MarketDepth"; this.toolStrip1.Items.Add((ToolStripItem)this.cbxMarketDepth); this.cbxBars = new CheckboxToolStripItem(); this.cbxBars.CheckBoxText = "Bars"; this.toolStrip1.Items.Add((ToolStripItem)this.cbxBars); this.cbxQuotes = new CheckboxToolStripItem(); this.cbxQuotes.CheckBoxText = "Quotes"; this.cbxQuotes.Checked = true; this.toolStrip1.Items.Add((ToolStripItem)this.cbxQuotes); this.cbxTrades = new CheckboxToolStripItem(); this.cbxTrades.CheckBoxText = "Trades"; this.cbxTrades.Checked = true; this.toolStrip1.Items.Add((ToolStripItem)this.cbxTrades); this.instruments = new Hashtable(); this.isRunning = false; new Thread(new ThreadStart(this.RunQueue)) { IsBackground = true }.Start(); }