[Quantproject-developers] QuantDownloader/Downloader/TickerSelectors TickerSelectorForm.cs,1.12,1.13
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-04-14 18:40:45
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22812/Downloader/TickerSelectors Modified Files: TickerSelectorForm.cs Log Message: Added visual interface for new ITickerSelector object SelectorByWinningOpenToClose Index: TickerSelectorForm.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors/TickerSelectorForm.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** TickerSelectorForm.cs 30 Mar 2005 16:11:10 -0000 1.12 --- TickerSelectorForm.cs 14 Apr 2005 18:40:05 -0000 1.13 *************** *** 48,60 **** private System.Windows.Forms.GroupBox groupBoxSelectionRule; private System.Windows.Forms.DateTimePicker dateTimePickerFirstDate; - private System.Windows.Forms.DataGrid dataGrid1; private System.Windows.Forms.DateTimePicker dateTimePickerLastDate; ! private System.Windows.Forms.TextBox textBoxMarketIndex; private System.Windows.Forms.ToolTip toolTip1; private System.Windows.Forms.Label labelMarketIndexKey; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox textBoxGroupID; ! private System.Windows.Forms.TextBox textBoxMaxStdDev; private System.Windows.Forms.ComboBox comboBoxAvailableSelectionRules; private System.Windows.Forms.Label label3; --- 48,60 ---- private System.Windows.Forms.GroupBox groupBoxSelectionRule; private System.Windows.Forms.DateTimePicker dateTimePickerFirstDate; private System.Windows.Forms.DateTimePicker dateTimePickerLastDate; ! private System.Windows.Forms.TextBox textBoxMaxStdDev; private System.Windows.Forms.ToolTip toolTip1; private System.Windows.Forms.Label labelMarketIndexKey; + private System.Windows.Forms.DataGrid dataGrid1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox textBoxGroupID; ! private System.Windows.Forms.TextBox textBoxMarketIndex; private System.Windows.Forms.ComboBox comboBoxAvailableSelectionRules; private System.Windows.Forms.Label label3; *************** *** 88,91 **** --- 88,92 ---- this.comboBoxAvailableSelectionRules.Items.Add("QuotedAtEachMarketDay"); this.comboBoxAvailableSelectionRules.Items.Add("AverageRawOpenPrice"); + this.comboBoxAvailableSelectionRules.Items.Add("WinningOpenToClose"); } *************** *** 135,147 **** this.label3 = new System.Windows.Forms.Label(); this.comboBoxAvailableSelectionRules = new System.Windows.Forms.ComboBox(); ! this.textBoxMaxStdDev = 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.labelMarketIndexKey = new System.Windows.Forms.Label(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); ! this.textBoxMarketIndex = new System.Windows.Forms.TextBox(); this.dateTimePickerLastDate = new System.Windows.Forms.DateTimePicker(); - this.dataGrid1 = new System.Windows.Forms.DataGrid(); this.dateTimePickerFirstDate = new System.Windows.Forms.DateTimePicker(); this.groupBoxSelectionRule = new System.Windows.Forms.GroupBox(); --- 136,148 ---- 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(); *************** *** 253,264 **** this.comboBoxAvailableSelectionRules.SelectedValueChanged += new System.EventHandler(this.comboBoxAvailableSelectionRules_SelectedValueChanged); // ! // 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; // // textBoxGroupID --- 254,265 ---- 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 *************** *** 286,289 **** --- 287,302 ---- 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 // *************** *** 295,306 **** this.labelMarketIndexKey.Visible = false; // ! // 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; // // dateTimePickerLastDate --- 308,319 ---- 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 *************** *** 312,327 **** this.dateTimePickerLastDate.TabIndex = 15; // - // 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; - // // dateTimePickerFirstDate // --- 325,328 ---- *************** *** 580,586 **** Double.Parse(this.textBoxMinStdDev.Text), Double.Parse(this.textBoxMaxStdDev.Text)); } return returnValue; } ! private void setVisibilityForControls_QuotedAtEachMarketDay(bool showControls) { --- 581,598 ---- Double.Parse(this.textBoxMinStdDev.Text), Double.Parse(this.textBoxMaxStdDev.Text)); } + else if (this.comboBoxAvailableSelectionRules.Text == "WinningOpenToClose") + { + if(this.textBoxGroupID.Text != "") + 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.textBoxGroupID.Text, + this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, + this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text)); + } return returnValue; } ! private void setVisibilityForControls_QuotedAtEachMarketDay(bool showControls) { |