[Quantproject-developers] QuantDownloader/Downloader/OpenTickDownloader/UserForms OTWebDownloader.
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-07-09 22:01:40
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader/UserForms In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18353/Downloader/OpenTickDownloader/UserForms Modified Files: OTWebDownloader.cs Log Message: Now, more control values are passed to OTTickerDownloader Index: OTWebDownloader.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/OpenTickDownloader/UserForms/OTWebDownloader.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** OTWebDownloader.cs 1 Jul 2008 17:41:33 -0000 1.1 --- OTWebDownloader.cs 9 Jul 2008 22:01:36 -0000 1.2 *************** *** 580,603 **** private void buttonDownloadQuotesOfSelectedTickers_Click(object sender, System.EventArgs e) { ! try{ ! OTTickerDownloader tickerDownloader = ! new OTTickerDownloader(this.TickersToDownload, this.StartingNewYorkDateTime, ! this.dateTimeOverwriteQuotesBefore.Value, ! this.checkBoxCheckingForMissingQuotes.Checked, ! this.checkBoxOverWrite.Checked, ! this.radioButtonDownloadOnlyAfterMax.Checked, ! this.txtOpenTickUser.Text, ! this.txtOpenTickPassword.Text); ! tickerDownloader.DownloadingStarted += ! new DownloadingStartedEventHandler(this.refreshForm_atDownloadedStarted); ! tickerDownloader.DatabaseUpdated += ! new DatabaseUpdatedEventHandler(this.refreshGrid); ! tickerDownloader.DownloadingCompleted += ! new DownloadingCompletedEventHandler(this.refreshForm_atDownloadedCompleted); ! this.buttonDownloadQuotesOfSelectedTickers.Enabled = false; ! this.downloadThread = new Thread( tickerDownloader.DownloadTickers ); ! this.downloadThread.Start(); ! } ! catch(Exception ex) { MessageBox.Show(ex.Message); --- 580,610 ---- private void buttonDownloadQuotesOfSelectedTickers_Click(object sender, System.EventArgs e) { ! try{ ! OTTickerDownloader tickerDownloader = ! new OTTickerDownloader( ! this.TickersToDownload, ! this.StartingNewYorkDateTime, ! Convert.ToInt32( this.fromHour.Value ) , ! Convert.ToInt32( this.fromMin.Value ) , ! Convert.ToInt32( this.fromSec.Value ) , ! Convert.ToInt32( this.timeFrameInSeconds.Value ) , ! Convert.ToInt32( this.numberOfBars.Value ) , ! this.dateTimeOverwriteQuotesBefore.Value, ! this.checkBoxCheckingForMissingQuotes.Checked, ! this.checkBoxOverWrite.Checked, ! this.radioButtonDownloadOnlyAfterMax.Checked, ! this.txtOpenTickUser.Text, ! this.txtOpenTickPassword.Text); ! tickerDownloader.DownloadingStarted += ! new DownloadingStartedEventHandler(this.refreshForm_atDownloadedStarted); ! tickerDownloader.DatabaseUpdated += ! new DatabaseUpdatedEventHandler(this.refreshGrid); ! tickerDownloader.DownloadingCompleted += ! new DownloadingCompletedEventHandler(this.refreshForm_atDownloadedCompleted); ! this.buttonDownloadQuotesOfSelectedTickers.Enabled = false; ! this.downloadThread = new Thread( tickerDownloader.DownloadTickers ); ! this.downloadThread.Start(); ! } ! catch(Exception ex) { MessageBox.Show(ex.Message); |