[Quantproject-developers] QuantDownloader/Downloader/TickerSelectors TickerSelectorForm.cs,1.16,1.17
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-09-18 20:53:25
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32312/Downloader/TickerSelectors Modified Files: TickerSelectorForm.cs Log Message: Added parameter to GetTickersByWinningOpenToClose method in Quotes class (data layer). Index: TickerSelectorForm.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors/TickerSelectorForm.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** TickerSelectorForm.cs 24 Jun 2005 23:06:34 -0000 1.16 --- TickerSelectorForm.cs 18 Sep 2005 20:53:16 -0000 1.17 *************** *** 68,71 **** --- 68,72 ---- private System.Windows.Forms.TextBox textBoxMaxPrice; private System.Windows.Forms.Splitter splitter1; + private System.Windows.Forms.CheckBox checkBoxOnlyWithAtLeastOneWinningDay; private DataTable tableOfSelectedTickers; *************** *** 125,425 **** /// </summary> private void InitializeComponent() { ! this.components = new System.ComponentModel.Container(); ! this.splitter1 = new System.Windows.Forms.Splitter(); ! this.textBoxMaxPrice = new System.Windows.Forms.TextBox(); ! this.labelMaxPrice = new System.Windows.Forms.Label(); ! this.label5 = new System.Windows.Forms.Label(); ! this.labelMaxStdDev = new System.Windows.Forms.Label(); ! this.label7 = new System.Windows.Forms.Label(); ! this.textBoxMaxNumOfReturnedTickers = new System.Windows.Forms.TextBox(); ! this.panel2 = new System.Windows.Forms.Panel(); ! this.labelMinStdDev = new System.Windows.Forms.Label(); ! this.label3 = new System.Windows.Forms.Label(); ! this.comboBoxAvailableSelectionRules = new System.Windows.Forms.ComboBox(); ! this.textBoxMarketIndex = new System.Windows.Forms.TextBox(); ! this.textBoxGroupID = new System.Windows.Forms.TextBox(); ! this.label1 = new System.Windows.Forms.Label(); ! this.label2 = new System.Windows.Forms.Label(); ! this.dataGrid1 = new System.Windows.Forms.DataGrid(); ! this.labelMarketIndexKey = new System.Windows.Forms.Label(); ! this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); ! this.textBoxMaxStdDev = new System.Windows.Forms.TextBox(); ! this.dateTimePickerLastDate = new System.Windows.Forms.DateTimePicker(); ! this.dateTimePickerFirstDate = new System.Windows.Forms.DateTimePicker(); ! this.groupBoxSelectionRule = new System.Windows.Forms.GroupBox(); ! this.checkBoxASCMode = new System.Windows.Forms.CheckBox(); ! this.buttonSelectTickers = new System.Windows.Forms.Button(); ! this.labelMinPrice = new System.Windows.Forms.Label(); ! this.textBoxMinStdDev = new System.Windows.Forms.TextBox(); ! this.textBoxMinPrice = new System.Windows.Forms.TextBox(); ! this.panel2.SuspendLayout(); ! ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit(); ! this.groupBoxSelectionRule.SuspendLayout(); ! this.SuspendLayout(); ! // ! // splitter1 ! // ! this.splitter1.BackColor = System.Drawing.SystemColors.Highlight; ! this.splitter1.Location = new System.Drawing.Point(432, 0); ! this.splitter1.Name = "splitter1"; ! this.splitter1.Size = new System.Drawing.Size(3, 478); ! this.splitter1.TabIndex = 8; ! this.splitter1.TabStop = false; ! // ! // textBoxMaxPrice ! // ! this.textBoxMaxPrice.Location = new System.Drawing.Point(72, 200); ! this.textBoxMaxPrice.Name = "textBoxMaxPrice"; ! this.textBoxMaxPrice.Size = new System.Drawing.Size(56, 20); ! this.textBoxMaxPrice.TabIndex = 32; ! this.textBoxMaxPrice.Text = ""; ! this.textBoxMaxPrice.Visible = false; ! // ! // labelMaxPrice ! // ! this.labelMaxPrice.Location = new System.Drawing.Point(16, 200); ! this.labelMaxPrice.Name = "labelMaxPrice"; ! this.labelMaxPrice.Size = new System.Drawing.Size(56, 23); ! this.labelMaxPrice.TabIndex = 33; ! this.labelMaxPrice.Text = "Max Price"; ! this.labelMaxPrice.Visible = false; ! // ! // label5 ! // ! this.label5.Location = new System.Drawing.Point(8, 24); ! this.label5.Name = "label5"; ! this.label5.Size = new System.Drawing.Size(64, 16); ! this.label5.TabIndex = 18; ! this.label5.Text = "First Date"; ! // ! // labelMaxStdDev ! // ! this.labelMaxStdDev.Location = new System.Drawing.Point(152, 200); ! this.labelMaxStdDev.Name = "labelMaxStdDev"; ! this.labelMaxStdDev.Size = new System.Drawing.Size(80, 23); ! this.labelMaxStdDev.TabIndex = 37; ! this.labelMaxStdDev.Text = "Max Std Dev"; ! this.labelMaxStdDev.Visible = false; ! // ! // label7 ! // ! this.label7.Location = new System.Drawing.Point(168, 24); ! this.label7.Name = "label7"; ! this.label7.Size = new System.Drawing.Size(64, 16); ! this.label7.TabIndex = 20; ! this.label7.Text = "Last Date"; ! // ! // textBoxMaxNumOfReturnedTickers ! // ! this.textBoxMaxNumOfReturnedTickers.Location = new System.Drawing.Point(312, 64); ! this.textBoxMaxNumOfReturnedTickers.Name = "textBoxMaxNumOfReturnedTickers"; ! this.textBoxMaxNumOfReturnedTickers.Size = new System.Drawing.Size(48, 20); ! this.textBoxMaxNumOfReturnedTickers.TabIndex = 23; ! this.textBoxMaxNumOfReturnedTickers.Text = ""; ! // ! // panel2 ! // ! this.panel2.Controls.Add(this.groupBoxSelectionRule); ! this.panel2.Controls.Add(this.buttonSelectTickers); ! this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; ! this.panel2.ForeColor = System.Drawing.SystemColors.ControlText; ! this.panel2.Location = new System.Drawing.Point(432, 0); ! this.panel2.Name = "panel2"; ! this.panel2.Size = new System.Drawing.Size(372, 478); ! this.panel2.TabIndex = 7; ! // ! // labelMinStdDev ! // ! this.labelMinStdDev.Location = new System.Drawing.Point(152, 152); ! this.labelMinStdDev.Name = "labelMinStdDev"; ! this.labelMinStdDev.Size = new System.Drawing.Size(72, 23); ! this.labelMinStdDev.TabIndex = 35; ! this.labelMinStdDev.Text = "Min Std Dev"; ! this.labelMinStdDev.Visible = false; ! // ! // label3 ! // ! this.label3.Location = new System.Drawing.Point(16, 96); ! this.label3.Name = "label3"; ! this.label3.Size = new System.Drawing.Size(120, 16); ! this.label3.TabIndex = 26; ! this.label3.Text = "Choose selection rule"; ! // ! // comboBoxAvailableSelectionRules ! // ! this.comboBoxAvailableSelectionRules.Location = new System.Drawing.Point(8, 120); ! this.comboBoxAvailableSelectionRules.Name = "comboBoxAvailableSelectionRules"; ! this.comboBoxAvailableSelectionRules.Size = new System.Drawing.Size(176, 21); ! this.comboBoxAvailableSelectionRules.TabIndex = 25; ! this.comboBoxAvailableSelectionRules.Text = "comboBox1"; ! this.comboBoxAvailableSelectionRules.SelectedValueChanged += new System.EventHandler(this.comboBoxAvailableSelectionRules_SelectedValueChanged); ! // ! // textBoxMarketIndex ! // ! this.textBoxMarketIndex.Location = new System.Drawing.Point(192, 176); ! this.textBoxMarketIndex.Name = "textBoxMarketIndex"; ! this.textBoxMarketIndex.Size = new System.Drawing.Size(88, 20); ! this.textBoxMarketIndex.TabIndex = 28; ! this.textBoxMarketIndex.Text = ""; ! this.textBoxMarketIndex.Visible = false; ! // ! // textBoxGroupID ! // ! this.textBoxGroupID.Location = new System.Drawing.Point(72, 64); ! this.textBoxGroupID.Name = "textBoxGroupID"; ! this.textBoxGroupID.Size = new System.Drawing.Size(88, 20); ! this.textBoxGroupID.TabIndex = 21; ! this.textBoxGroupID.Text = ""; ! // ! // label1 ! // ! this.label1.Location = new System.Drawing.Point(8, 64); ! this.label1.Name = "label1"; ! this.label1.Size = new System.Drawing.Size(64, 16); ! this.label1.TabIndex = 22; ! this.label1.Text = "GroupID"; ! // ! // label2 ! // ! this.label2.Location = new System.Drawing.Point(160, 64); ! this.label2.Name = "label2"; ! this.label2.Size = new System.Drawing.Size(152, 24); ! this.label2.TabIndex = 24; ! this.label2.Text = "Max Num of returned tickers"; ! // ! // dataGrid1 ! // ! this.dataGrid1.BorderStyle = System.Windows.Forms.BorderStyle.None; ! this.dataGrid1.DataMember = ""; ! this.dataGrid1.Dock = System.Windows.Forms.DockStyle.Left; ! this.dataGrid1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); ! this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText; ! this.dataGrid1.Location = new System.Drawing.Point(0, 0); ! this.dataGrid1.Name = "dataGrid1"; ! this.dataGrid1.Size = new System.Drawing.Size(432, 478); ! this.dataGrid1.TabIndex = 2; ! // ! // labelMarketIndexKey ! // ! this.labelMarketIndexKey.Location = new System.Drawing.Point(88, 176); ! this.labelMarketIndexKey.Name = "labelMarketIndexKey"; ! this.labelMarketIndexKey.Size = new System.Drawing.Size(96, 23); ! this.labelMarketIndexKey.TabIndex = 29; ! this.labelMarketIndexKey.Text = "Market index key:"; ! this.labelMarketIndexKey.Visible = false; ! // ! // textBoxMaxStdDev ! // ! this.textBoxMaxStdDev.Location = new System.Drawing.Point(232, 200); ! this.textBoxMaxStdDev.Name = "textBoxMaxStdDev"; ! this.textBoxMaxStdDev.Size = new System.Drawing.Size(56, 20); ! this.textBoxMaxStdDev.TabIndex = 36; ! this.textBoxMaxStdDev.Text = ""; ! this.textBoxMaxStdDev.Visible = false; ! // ! // dateTimePickerLastDate ! // ! this.dateTimePickerLastDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; ! this.dateTimePickerLastDate.Location = new System.Drawing.Point(240, 24); ! this.dateTimePickerLastDate.Name = "dateTimePickerLastDate"; ! this.dateTimePickerLastDate.Size = new System.Drawing.Size(88, 20); ! this.dateTimePickerLastDate.TabIndex = 15; ! // ! // dateTimePickerFirstDate ! // ! this.dateTimePickerFirstDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; ! this.dateTimePickerFirstDate.Location = new System.Drawing.Point(72, 24); ! this.dateTimePickerFirstDate.Name = "dateTimePickerFirstDate"; ! this.dateTimePickerFirstDate.Size = new System.Drawing.Size(88, 20); ! this.dateTimePickerFirstDate.TabIndex = 13; ! // ! // groupBoxSelectionRule ! // ! this.groupBoxSelectionRule.Controls.Add(this.labelMaxStdDev); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMaxStdDev); ! this.groupBoxSelectionRule.Controls.Add(this.labelMinStdDev); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMinStdDev); ! this.groupBoxSelectionRule.Controls.Add(this.labelMaxPrice); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMaxPrice); ! this.groupBoxSelectionRule.Controls.Add(this.labelMinPrice); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMinPrice); ! this.groupBoxSelectionRule.Controls.Add(this.labelMarketIndexKey); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMarketIndex); ! this.groupBoxSelectionRule.Controls.Add(this.checkBoxASCMode); ! this.groupBoxSelectionRule.Controls.Add(this.label3); ! this.groupBoxSelectionRule.Controls.Add(this.comboBoxAvailableSelectionRules); ! this.groupBoxSelectionRule.Controls.Add(this.label2); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxMaxNumOfReturnedTickers); ! this.groupBoxSelectionRule.Controls.Add(this.label1); ! this.groupBoxSelectionRule.Controls.Add(this.textBoxGroupID); ! this.groupBoxSelectionRule.Controls.Add(this.label7); ! this.groupBoxSelectionRule.Controls.Add(this.label5); ! this.groupBoxSelectionRule.Controls.Add(this.dateTimePickerLastDate); ! this.groupBoxSelectionRule.Controls.Add(this.dateTimePickerFirstDate); ! this.groupBoxSelectionRule.Location = new System.Drawing.Point(8, 16); ! this.groupBoxSelectionRule.Name = "groupBoxSelectionRule"; ! this.groupBoxSelectionRule.Size = new System.Drawing.Size(376, 248); ! this.groupBoxSelectionRule.TabIndex = 14; ! this.groupBoxSelectionRule.TabStop = false; ! this.groupBoxSelectionRule.Text = "Single Selection rule"; ! // ! // checkBoxASCMode ! // ! this.checkBoxASCMode.Location = new System.Drawing.Point(200, 120); ! this.checkBoxASCMode.Name = "checkBoxASCMode"; ! this.checkBoxASCMode.Size = new System.Drawing.Size(152, 24); ! this.checkBoxASCMode.TabIndex = 27; ! this.checkBoxASCMode.Text = "Order by ASC mode"; ! // ! // buttonSelectTickers ! // ! this.buttonSelectTickers.Location = new System.Drawing.Point(136, 272); ! this.buttonSelectTickers.Name = "buttonSelectTickers"; ! this.buttonSelectTickers.Size = new System.Drawing.Size(104, 24); ! this.buttonSelectTickers.TabIndex = 3; ! this.buttonSelectTickers.Text = "Select Tickers"; ! this.buttonSelectTickers.Click += new System.EventHandler(this.buttonSelectTickers_Click); ! // ! // labelMinPrice ! // ! this.labelMinPrice.Location = new System.Drawing.Point(16, 152); ! this.labelMinPrice.Name = "labelMinPrice"; ! this.labelMinPrice.Size = new System.Drawing.Size(56, 23); ! this.labelMinPrice.TabIndex = 31; ! this.labelMinPrice.Text = "Min Price"; ! this.labelMinPrice.Visible = false; ! // ! // textBoxMinStdDev ! // ! this.textBoxMinStdDev.Location = new System.Drawing.Point(232, 152); ! this.textBoxMinStdDev.Name = "textBoxMinStdDev"; ! this.textBoxMinStdDev.Size = new System.Drawing.Size(56, 20); ! this.textBoxMinStdDev.TabIndex = 34; ! this.textBoxMinStdDev.Text = ""; ! this.textBoxMinStdDev.Visible = false; ! // ! // textBoxMinPrice ! // ! this.textBoxMinPrice.Location = new System.Drawing.Point(72, 152); ! this.textBoxMinPrice.Name = "textBoxMinPrice"; ! this.textBoxMinPrice.Size = new System.Drawing.Size(56, 20); ! this.textBoxMinPrice.TabIndex = 30; ! this.textBoxMinPrice.Text = ""; ! this.textBoxMinPrice.Visible = false; ! // ! // TickerSelectorForm ! // ! this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); ! this.ClientSize = new System.Drawing.Size(804, 478); ! this.Controls.Add(this.splitter1); ! this.Controls.Add(this.panel2); ! this.Controls.Add(this.dataGrid1); ! this.Name = "TickerSelectorForm"; ! this.Text = "Ticker Selector"; ! this.panel2.ResumeLayout(false); ! ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit(); ! this.groupBoxSelectionRule.ResumeLayout(false); ! this.ResumeLayout(false); ! } #endregion --- 126,441 ---- /// </summary> private void InitializeComponent() { ! this.components = new System.ComponentModel.Container(); ! this.splitter1 = new System.Windows.Forms.Splitter(); ! this.textBoxMaxPrice = new System.Windows.Forms.TextBox(); ! this.labelMaxPrice = new System.Windows.Forms.Label(); ! this.label5 = new System.Windows.Forms.Label(); ! this.labelMaxStdDev = new System.Windows.Forms.Label(); ! this.label7 = new System.Windows.Forms.Label(); ! this.textBoxMaxNumOfReturnedTickers = new System.Windows.Forms.TextBox(); ! this.panel2 = new System.Windows.Forms.Panel(); ! this.groupBoxSelectionRule = new System.Windows.Forms.GroupBox(); ! this.textBoxMaxStdDev = new System.Windows.Forms.TextBox(); ! this.labelMinStdDev = new System.Windows.Forms.Label(); ! this.textBoxMinStdDev = new System.Windows.Forms.TextBox(); ! this.labelMinPrice = new System.Windows.Forms.Label(); ! this.textBoxMinPrice = new System.Windows.Forms.TextBox(); ! this.labelMarketIndexKey = new System.Windows.Forms.Label(); ! this.textBoxMarketIndex = new System.Windows.Forms.TextBox(); ! this.checkBoxASCMode = new System.Windows.Forms.CheckBox(); ! this.label3 = new System.Windows.Forms.Label(); ! this.comboBoxAvailableSelectionRules = new System.Windows.Forms.ComboBox(); ! this.label2 = new System.Windows.Forms.Label(); ! this.label1 = new System.Windows.Forms.Label(); ! this.textBoxGroupID = new System.Windows.Forms.TextBox(); ! this.dateTimePickerLastDate = new System.Windows.Forms.DateTimePicker(); ! this.dateTimePickerFirstDate = new System.Windows.Forms.DateTimePicker(); ! this.buttonSelectTickers = new System.Windows.Forms.Button(); ! this.dataGrid1 = new System.Windows.Forms.DataGrid(); ! this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); ! this.checkBoxOnlyWithAtLeastOneWinningDay = new System.Windows.Forms.CheckBox(); ! this.panel2.SuspendLayout(); ! this.groupBoxSelectionRule.SuspendLayout(); ! ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit(); ! this.SuspendLayout(); ! // ! // splitter1 ! // ! this.splitter1.BackColor = System.Drawing.SystemColors.Highlight; ! this.splitter1.Location = new System.Drawing.Point(432, 0); ! this.splitter1.Name = "splitter1"; ! this.splitter1.Size = new System.Drawing.Size(3, 478); ! this.splitter1.TabIndex = 8; ! this.splitter1.TabStop = false; ! // ! // textBoxMaxPrice ! // ! this.textBoxMaxPrice.Location = new System.Drawing.Point(72, 232); ! this.textBoxMaxPrice.Name = "textBoxMaxPrice"; ! this.textBoxMaxPrice.Size = new System.Drawing.Size(56, 20); ! this.textBoxMaxPrice.TabIndex = 32; ! this.textBoxMaxPrice.Text = ""; ! this.textBoxMaxPrice.Visible = false; ! // ! // labelMaxPrice ! // ! this.labelMaxPrice.Location = new System.Drawing.Point(16, 232); ! this.labelMaxPrice.Name = "labelMaxPrice"; ! this.labelMaxPrice.Size = new System.Drawing.Size(56, 23); ! this.labelMaxPrice.TabIndex = 33; ! this.labelMaxPrice.Text = "Max Price"; ! this.labelMaxPrice.Visible = false; ! // ! // label5 ! // ! this.label5.Location = new System.Drawing.Point(8, 24); ! this.label5.Name = "label5"; ! this.label5.Size = new System.Drawing.Size(64, 16); ! this.label5.TabIndex = 18; ! this.label5.Text = "First Date"; ! // ! // labelMaxStdDev ! // ! this.labelMaxStdDev.Location = new System.Drawing.Point(152, 232); ! this.labelMaxStdDev.Name = "labelMaxStdDev"; ! this.labelMaxStdDev.Size = new System.Drawing.Size(80, 23); ! this.labelMaxStdDev.TabIndex = 37; ! this.labelMaxStdDev.Text = "Max Std Dev"; ! this.labelMaxStdDev.Visible = false; ! // ! // label7 ! // ! this.label7.Location = new System.Drawing.Point(168, 24); ! this.label7.Name = "label7"; ! this.label7.Size = new System.Drawing.Size(64, 16); ! this.label7.TabIndex = 20; ! this.label7.Text = "Last Date"; ! // ! // textBoxMaxNumOfReturnedTickers ! // ! this.textBoxMaxNumOfReturnedTickers.Location = new System.Drawing.Point(312, 64); ! this.textBoxMaxNumOfReturnedTickers.Name = "textBoxMaxNumOfReturnedTickers"; ! this.textBoxMaxNumOfReturnedTickers.Size = new System.Drawing.Size(48, 20); ! this.textBoxMaxNumOfReturnedTickers.TabIndex = 23; ! this.textBoxMaxNumOfReturnedTickers.Text = ""; ! // ! // panel2 ! // ! this.panel2.Controls.AddRange(new System.Windows.Forms.Control[] { ! this.groupBoxSelectionRule, ! this.buttonSelectTickers}); ! this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; ! this.panel2.ForeColor = System.Drawing.SystemColors.ControlText; ! this.panel2.Location = new System.Drawing.Point(432, 0); ! this.panel2.Name = "panel2"; ! this.panel2.Size = new System.Drawing.Size(372, 478); ! this.panel2.TabIndex = 7; ! // ! // groupBoxSelectionRule ! // ! this.groupBoxSelectionRule.Controls.AddRange(new System.Windows.Forms.Control[] { ! this.checkBoxOnlyWithAtLeastOneWinningDay, ! this.labelMaxStdDev, ! this.textBoxMaxStdDev, ! this.labelMinStdDev, ! this.textBoxMinStdDev, ! this.labelMaxPrice, ! this.textBoxMaxPrice, ! this.labelMinPrice, ! this.textBoxMinPrice, ! this.labelMarketIndexKey, ! this.textBoxMarketIndex, ! this.checkBoxASCMode, ! this.label3, ! this.comboBoxAvailableSelectionRules, ! this.label2, ! this.textBoxMaxNumOfReturnedTickers, ! this.label1, ! this.textBoxGroupID, ! this.label7, ! this.label5, ! this.dateTimePickerLastDate, ! this.dateTimePickerFirstDate}); ! this.groupBoxSelectionRule.Location = new System.Drawing.Point(8, 16); ! this.groupBoxSelectionRule.Name = "groupBoxSelectionRule"; ! this.groupBoxSelectionRule.Size = new System.Drawing.Size(376, 272); ! this.groupBoxSelectionRule.TabIndex = 14; ! this.groupBoxSelectionRule.TabStop = false; ! this.groupBoxSelectionRule.Text = "Single Selection rule"; ! // ! // textBoxMaxStdDev ! // ! this.textBoxMaxStdDev.Location = new System.Drawing.Point(232, 232); ! this.textBoxMaxStdDev.Name = "textBoxMaxStdDev"; ! this.textBoxMaxStdDev.Size = new System.Drawing.Size(56, 20); ! this.textBoxMaxStdDev.TabIndex = 36; ! this.textBoxMaxStdDev.Text = ""; ! this.textBoxMaxStdDev.Visible = false; ! // ! // labelMinStdDev ! // ! this.labelMinStdDev.Location = new System.Drawing.Point(152, 184); ! this.labelMinStdDev.Name = "labelMinStdDev"; ! this.labelMinStdDev.Size = new System.Drawing.Size(72, 23); ! this.labelMinStdDev.TabIndex = 35; ! this.labelMinStdDev.Text = "Min Std Dev"; ! this.labelMinStdDev.Visible = false; ! // ! // textBoxMinStdDev ! // ! this.textBoxMinStdDev.Location = new System.Drawing.Point(232, 184); ! this.textBoxMinStdDev.Name = "textBoxMinStdDev"; ! this.textBoxMinStdDev.Size = new System.Drawing.Size(56, 20); ! this.textBoxMinStdDev.TabIndex = 34; ! this.textBoxMinStdDev.Text = ""; ! this.textBoxMinStdDev.Visible = false; ! // ! // labelMinPrice ! // ! this.labelMinPrice.Location = new System.Drawing.Point(16, 184); ! this.labelMinPrice.Name = "labelMinPrice"; ! this.labelMinPrice.Size = new System.Drawing.Size(56, 23); ! this.labelMinPrice.TabIndex = 31; ! this.labelMinPrice.Text = "Min Price"; ! this.labelMinPrice.Visible = false; ! // ! // textBoxMinPrice ! // ! this.textBoxMinPrice.Location = new System.Drawing.Point(72, 184); ! this.textBoxMinPrice.Name = "textBoxMinPrice"; ! this.textBoxMinPrice.Size = new System.Drawing.Size(56, 20); ! this.textBoxMinPrice.TabIndex = 30; ! this.textBoxMinPrice.Text = ""; ! this.textBoxMinPrice.Visible = false; ! // ! // labelMarketIndexKey ! // ! this.labelMarketIndexKey.Location = new System.Drawing.Point(88, 208); ! this.labelMarketIndexKey.Name = "labelMarketIndexKey"; ! this.labelMarketIndexKey.Size = new System.Drawing.Size(96, 23); ! this.labelMarketIndexKey.TabIndex = 29; ! this.labelMarketIndexKey.Text = "Market index key:"; ! this.labelMarketIndexKey.Visible = false; ! // ! // textBoxMarketIndex ! // ! this.textBoxMarketIndex.Location = new System.Drawing.Point(192, 208); ! this.textBoxMarketIndex.Name = "textBoxMarketIndex"; ! this.textBoxMarketIndex.Size = new System.Drawing.Size(88, 20); ! this.textBoxMarketIndex.TabIndex = 28; ! this.textBoxMarketIndex.Text = ""; ! this.textBoxMarketIndex.Visible = false; ! // ! // checkBoxASCMode ! // ! this.checkBoxASCMode.Location = new System.Drawing.Point(8, 144); ! this.checkBoxASCMode.Name = "checkBoxASCMode"; ! this.checkBoxASCMode.Size = new System.Drawing.Size(152, 24); ! this.checkBoxASCMode.TabIndex = 27; ! this.checkBoxASCMode.Text = "Order by ASC mode"; ! // ! // label3 ! // ! this.label3.Location = new System.Drawing.Point(16, 96); ! this.label3.Name = "label3"; ! this.label3.Size = new System.Drawing.Size(120, 16); ! this.label3.TabIndex = 26; ! this.label3.Text = "Choose selection rule"; ! // ! // comboBoxAvailableSelectionRules ! // ! this.comboBoxAvailableSelectionRules.Location = new System.Drawing.Point(8, 120); ! this.comboBoxAvailableSelectionRules.Name = "comboBoxAvailableSelectionRules"; ! this.comboBoxAvailableSelectionRules.Size = new System.Drawing.Size(176, 21); ! this.comboBoxAvailableSelectionRules.TabIndex = 25; ! this.comboBoxAvailableSelectionRules.Text = "comboBox1"; ! this.comboBoxAvailableSelectionRules.SelectedValueChanged += new System.EventHandler(this.comboBoxAvailableSelectionRules_SelectedValueChanged); ! // ! // label2 ! // ! this.label2.Location = new System.Drawing.Point(160, 64); ! this.label2.Name = "label2"; ! this.label2.Size = new System.Drawing.Size(152, 24); ! this.label2.TabIndex = 24; ! this.label2.Text = "Max Num of returned tickers"; ! // ! // label1 ! // ! this.label1.Location = new System.Drawing.Point(8, 64); ! this.label1.Name = "label1"; ! this.label1.Size = new System.Drawing.Size(64, 16); ! this.label1.TabIndex = 22; ! this.label1.Text = "GroupID"; ! // ! // textBoxGroupID ! // ! this.textBoxGroupID.Location = new System.Drawing.Point(72, 64); ! this.textBoxGroupID.Name = "textBoxGroupID"; ! this.textBoxGroupID.Size = new System.Drawing.Size(88, 20); ! this.textBoxGroupID.TabIndex = 21; ! this.textBoxGroupID.Text = ""; ! // ! // dateTimePickerLastDate ! // ! this.dateTimePickerLastDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; ! this.dateTimePickerLastDate.Location = new System.Drawing.Point(240, 24); ! this.dateTimePickerLastDate.Name = "dateTimePickerLastDate"; ! this.dateTimePickerLastDate.Size = new System.Drawing.Size(88, 20); ! this.dateTimePickerLastDate.TabIndex = 15; ! // ! // dateTimePickerFirstDate ! // ! this.dateTimePickerFirstDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; ! this.dateTimePickerFirstDate.Location = new System.Drawing.Point(72, 24); ! this.dateTimePickerFirstDate.Name = "dateTimePickerFirstDate"; ! this.dateTimePickerFirstDate.Size = new System.Drawing.Size(88, 20); ! this.dateTimePickerFirstDate.TabIndex = 13; ! // ! // buttonSelectTickers ! // ! this.buttonSelectTickers.Location = new System.Drawing.Point(136, 296); ! this.buttonSelectTickers.Name = "buttonSelectTickers"; ! this.buttonSelectTickers.Size = new System.Drawing.Size(104, 24); ! this.buttonSelectTickers.TabIndex = 3; ! this.buttonSelectTickers.Text = "Select Tickers"; ! this.buttonSelectTickers.Click += new System.EventHandler(this.buttonSelectTickers_Click); ! // ! // dataGrid1 ! // ! this.dataGrid1.BorderStyle = System.Windows.Forms.BorderStyle.None; ! this.dataGrid1.DataMember = ""; ! this.dataGrid1.Dock = System.Windows.Forms.DockStyle.Left; ! this.dataGrid1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); ! this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText; ! this.dataGrid1.Name = "dataGrid1"; ! this.dataGrid1.Size = new System.Drawing.Size(432, 478); ! this.dataGrid1.TabIndex = 2; ! // ! // checkBoxOnlyWithAtLeastOneWinningDay ! // ! this.checkBoxOnlyWithAtLeastOneWinningDay.Enabled = false; ! this.checkBoxOnlyWithAtLeastOneWinningDay.Location = new System.Drawing.Point(192, 144); ! this.checkBoxOnlyWithAtLeastOneWinningDay.Name = "checkBoxOnlyWithAtLeastOneWinningDay"; ! this.checkBoxOnlyWithAtLeastOneWinningDay.Size = new System.Drawing.Size(152, 24); ! this.checkBoxOnlyWithAtLeastOneWinningDay.TabIndex = 38; ! this.checkBoxOnlyWithAtLeastOneWinningDay.Text = "Exclude \"pure\" losers"; ! this.toolTip1.SetToolTip(this.checkBoxOnlyWithAtLeastOneWinningDay, "Check if you want to filter only tickers with at least one winning day"); ! // ! // TickerSelectorForm ! // ! this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); ! this.ClientSize = new System.Drawing.Size(804, 478); ! this.Controls.AddRange(new System.Windows.Forms.Control[] { ! this.splitter1, ! this.panel2, ! this.dataGrid1}); ! this.Name = "TickerSelectorForm"; ! this.Text = "Ticker Selector"; ! this.panel2.ResumeLayout(false); ! this.groupBoxSelectionRule.ResumeLayout(false); ! ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit(); ! this.ResumeLayout(false); ! ! } #endregion *************** *** 587,595 **** returnValue = new SelectorByWinningOpenToClose(this.textBoxGroupID.Text, this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, ! this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text)); else returnValue = new SelectorByWinningOpenToClose(this.tableOfSelectedTickers, this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, ! this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text)); } else if (this.comboBoxAvailableSelectionRules.Text == "OpenCloseCorrelationToBenchmark") --- 603,613 ---- returnValue = new SelectorByWinningOpenToClose(this.textBoxGroupID.Text, this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, ! this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text), ! this.checkBoxOnlyWithAtLeastOneWinningDay.Checked); else returnValue = new SelectorByWinningOpenToClose(this.tableOfSelectedTickers, this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, ! this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text), ! this.checkBoxOnlyWithAtLeastOneWinningDay.Checked); } else if (this.comboBoxAvailableSelectionRules.Text == "OpenCloseCorrelationToBenchmark") *************** *** 613,616 **** --- 631,639 ---- this.textBoxMarketIndex.Visible = showControls; } + private void setVisibilityForControls_WinningOpenToClose(bool showControls) + { + this.checkBoxASCMode.Enabled = showControls; + this.checkBoxOnlyWithAtLeastOneWinningDay.Enabled = showControls; + } private void setVisibilityForControls_AverageRawOpenPrice(bool showControls) { *************** *** 631,635 **** this.comboBoxAvailableSelectionRules.Text == "OpenCloseCorrelationToBenchmark") { ! this.setVisibilityForControls_QuotedAtEachMarketDay(true); } else if(this.comboBoxAvailableSelectionRules.Text == "AverageRawOpenPrice") --- 654,660 ---- this.comboBoxAvailableSelectionRules.Text == "OpenCloseCorrelationToBenchmark") { ! this.setVisibilityForControls_AverageRawOpenPrice(false); ! this.setVisibilityForControls_WinningOpenToClose(false); ! this.setVisibilityForControls_QuotedAtEachMarketDay(true); } else if(this.comboBoxAvailableSelectionRules.Text == "AverageRawOpenPrice") *************** *** 637,642 **** --- 662,675 ---- this.textBoxMarketIndex.Text = ""; this.setVisibilityForControls_QuotedAtEachMarketDay(false); + this.setVisibilityForControls_WinningOpenToClose(false); this.setVisibilityForControls_AverageRawOpenPrice(true); } + else if(this.comboBoxAvailableSelectionRules.Text == "WinningOpenToClose") + { + this.textBoxMarketIndex.Text = ""; + this.setVisibilityForControls_QuotedAtEachMarketDay(false); + this.setVisibilityForControls_AverageRawOpenPrice(false); + this.setVisibilityForControls_WinningOpenToClose(true); + } else { *************** *** 644,647 **** --- 677,682 ---- this.setVisibilityForControls_QuotedAtEachMarketDay(false); this.setVisibilityForControls_AverageRawOpenPrice(false); + this.setVisibilityForControls_WinningOpenToClose(false); + this.checkBoxASCMode.Enabled = true; } } |