[Quantproject-developers] QuantDownloader/Downloader/QuotesEditor/CloseToClose CloseToCloseChart.cs,
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-03-28 20:30:30
|
Update of /cvsroot/quantproject/QuantDownloader/Downloader/QuotesEditor/CloseToClose In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28859/Downloader/QuotesEditor/CloseToClose Modified Files: CloseToCloseChart.cs Log Message: ConstantsProvider.PrecedingDaysForVisualValidation is used instead of the 20 constant Index: CloseToCloseChart.cs =================================================================== RCS file: /cvsroot/quantproject/QuantDownloader/Downloader/QuotesEditor/CloseToClose/CloseToCloseChart.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CloseToCloseChart.cs 21 Mar 2004 17:00:53 -0000 1.2 --- CloseToCloseChart.cs 28 Mar 2004 20:19:07 -0000 1.3 *************** *** 24,27 **** --- 24,28 ---- using scpl; using scpl.Windows; + using QuantProject.ADT; using QuantProject.ADT.Histories; using QuantProject.Data; *************** *** 66,72 **** { this.startDateTime = (DateTime) this.history.GetKey( Math.Max( 0 , ! this.history.IndexOfKeyOrPrevious( this.suspiciousDateTime ) - 20 ) ); this.endDateTime = (DateTime) this.history.GetKey( Math.Min( this.history.Count - 1 , ! this.history.IndexOfKeyOrPrevious( this.suspiciousDateTime ) ) + 20 ); } protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) --- 67,75 ---- { this.startDateTime = (DateTime) this.history.GetKey( Math.Max( 0 , ! this.history.IndexOfKeyOrPrevious( this.suspiciousDateTime ) - ! ConstantsProvider.PrecedingDaysForVisualValidation ) ); this.endDateTime = (DateTime) this.history.GetKey( Math.Min( this.history.Count - 1 , ! this.history.IndexOfKeyOrPrevious( this.suspiciousDateTime ) ) + ! ConstantsProvider.PrecedingDaysForVisualValidation ); } protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) |