[Quantproject-developers] QuantDownloader/Downloader/QuotesEditor QuotesEditor.cs,1.7,1.8
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-05-27 16:28:25
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/QuotesEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1286/Downloader/QuotesEditor Modified Files: QuotesEditor.cs Log Message: Added a message box that allows the user to validate the full ticker (when the validation process returns no suspicious row) Index: QuotesEditor.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/QuotesEditor/QuotesEditor.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** QuotesEditor.cs 8 May 2004 17:31:39 -0000 1.7 --- QuotesEditor.cs 27 May 2004 16:28:04 -0000 1.8 *************** *** 10,13 **** --- 10,14 ---- using QuantProject.Business.Validation; using QuantProject.Data; + using QuantProject.Data.DataTables; namespace QuantProject.Applications.Downloader *************** *** 42,45 **** --- 43,57 ---- private System.ComponentModel.Container components = null; + private void updateValidateDataTable_validateTicker() + { + if ( MessageBox.Show( this , "This ticker's quotes are ok, with respect to the current " + + "validation process. Do you want to sign current ticker's quotes as valid quotes?" , + "Ticker's quotes validation" , + MessageBoxButtons.YesNo , + MessageBoxIcon.Question , + MessageBoxDefaultButton.Button1 ) == DialogResult.Yes ) + // the user asked to write the visual validation to the database + ValidatedTickers.Validate( this.validateDataTable.Quotes ); // TO DO: remove the beguinning ConstantsProvider.DaysForMovingAverageForSuspiciousRatioValidation rows + } private void updateValidateDataTable() { *************** *** 51,54 **** --- 63,69 ---- // this.validateDataTable.Clear(); this.validateDataTable.AddRows( this.textBoxTicker.Text ); + if ( this.validateDataTable.Rows.Count == 0 ) + // the ticker's quotes have been completely validated + updateValidateDataTable_validateTicker(); } |