[Quantproject-developers] QuantDownloader/Downloader/TickerSelectors TickerSelectorForm.cs,1.2,1.3
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2004-06-20 10:16:22
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12428/Downloader/TickerSelectors Modified Files: TickerSelectorForm.cs Log Message: Added an overloaded constructor, necessary for the application of a rule upon a set of tickers selected manually by the user with a form implementing ITickerSelector (tickerViewer or tickerGroupsViewer) Index: TickerSelectorForm.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/TickerSelectors/TickerSelectorForm.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TickerSelectorForm.cs 19 Jun 2004 01:04:56 -0000 1.2 --- TickerSelectorForm.cs 20 Jun 2004 10:16:09 -0000 1.3 *************** *** 57,60 **** --- 57,61 ---- private System.Windows.Forms.TextBox textBoxMaxNumOfReturnedTickers; private System.Windows.Forms.Label label3; + private DataTable tableOfSelectedTickers; public TickerSelectorForm() *************** *** 71,76 **** --- 72,86 ---- public TickerSelectorForm(string groupID) : this() { + this.Text = "Apply rule to all tickers of the selected group"; this.textBoxGroupID.Text = groupID; } + + public TickerSelectorForm(DataTable tableOfSelectedTickers) : this() + { + this.Text = "Apply rule to the selected tickers"; + this.tableOfSelectedTickers = tableOfSelectedTickers; + this.textBoxGroupID.Enabled = false; + } + /// <summary> /// clean up *************** *** 317,321 **** private void buttonSelectTickers_Click(object sender, System.EventArgs e) { ! //TODO: complete code ... SelectionRule rule = new SelectionRule(SelectionType.MostLiquid, this.textBoxGroupID.Text, this.dateTimePickerFirstDate.Value, --- 327,332 ---- private void buttonSelectTickers_Click(object sender, System.EventArgs e) { ! //TODO: complete code finding a way to construct the right ! // selection rule on the base of what selected by the user SelectionRule rule = new SelectionRule(SelectionType.MostLiquid, this.textBoxGroupID.Text, this.dateTimePickerFirstDate.Value, *************** *** 326,330 **** selector= new TickerSelector(rule); else ! selector= new TickerSelector(QuantProject.Data.DataTables.TickerDataTable.Clipboard,rule); this.dataGrid1.DataSource = selector.GetTableOfSelectedTickers(); this.dataGrid1.Refresh(); --- 337,341 ---- selector= new TickerSelector(rule); else ! selector= new TickerSelector(this.tableOfSelectedTickers,rule); this.dataGrid1.DataSource = selector.GetTableOfSelectedTickers(); this.dataGrid1.Refresh(); |