[Quantproject-developers] QuantDownloader/Downloader/TickerSelectors TickerSelectorForm.cs,1.14,1.15
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-05-17 23:15:59
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19437/Downloader/TickerSelectors Modified Files: TickerSelectorForm.cs Log Message: Updated visual interface for ITickerSelector objects Index: TickerSelectorForm.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors/TickerSelectorForm.cs,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** TickerSelectorForm.cs 19 Apr 2005 18:44:52 -0000 1.14 --- TickerSelectorForm.cs 17 May 2005 23:15:45 -0000 1.15 *************** *** 89,92 **** --- 89,93 ---- this.comboBoxAvailableSelectionRules.Items.Add("AverageRawOpenPrice"); this.comboBoxAvailableSelectionRules.Items.Add("WinningOpenToClose"); + this.comboBoxAvailableSelectionRules.Items.Add("OpenCloseCorrelationToBenchmark"); } *************** *** 591,594 **** --- 592,606 ---- this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text)); + } + else if (this.comboBoxAvailableSelectionRules.Text == "OpenCloseCorrelationToBenchmark") + { + if(this.textBoxGroupID.Text != "") + returnValue = new SelectorByOpenCloseCorrelationToBenchmark(this.textBoxGroupID.Text, this.textBoxMarketIndex.Text, + this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, + this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text)); + else + returnValue = new SelectorByOpenCloseCorrelationToBenchmark(this.tableOfSelectedTickers, this.textBoxMarketIndex.Text, + this.checkBoxASCMode.Checked, this.dateTimePickerFirstDate.Value, + this.dateTimePickerLastDate.Value, Int32.Parse(this.textBoxMaxNumOfReturnedTickers.Text)); } return returnValue; *************** *** 616,620 **** private void comboBoxAvailableSelectionRules_SelectedValueChanged(object sender, System.EventArgs e) { ! if(this.comboBoxAvailableSelectionRules.Text == "QuotedAtEachMarketDay") { this.setVisibilityForControls_QuotedAtEachMarketDay(true); --- 628,633 ---- private void comboBoxAvailableSelectionRules_SelectedValueChanged(object sender, System.EventArgs e) { ! if(this.comboBoxAvailableSelectionRules.Text == "QuotedAtEachMarketDay" || ! this.comboBoxAvailableSelectionRules.Text == "OpenCloseCorrelationToBenchmark") { this.setVisibilityForControls_QuotedAtEachMarketDay(true); |