[Quantproject-developers] QuantProject/b5_Presentation/Reporting/WindowsForm EquityChartTabPage.cs,1
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2006-05-31 14:35:31
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12161/b5_Presentation/Reporting/WindowsForm Modified Files: EquityChartTabPage.cs Log Message: - a new constructor has been added; now it is possible to create a report that will not display the benchmark equity line - the public Chart EquityChart has been added Index: EquityChartTabPage.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/EquityChartTabPage.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EquityChartTabPage.cs 15 Oct 2005 18:06:36 -0000 1.6 --- EquityChartTabPage.cs 31 May 2006 14:35:16 -0000 1.7 *************** *** 40,43 **** --- 40,54 ---- private Chart equityChart; private History benchmark; + // private bool showBenchmark; + + public Chart EquityChart + { + get { return this.equityChart; } + } + // public bool ShowBenchmark + // { + // get { return this.showBenchmark; } + // set { this.showBenchmark = value; } + // } /// <summary> *************** *** 56,60 **** return this.accountReport.BenchmarkEquityLine.MultiplyBy( normalizingFactor ); } ! public EquityChartTabPage( AccountReport accountReport ) { this.Text = "Equity Line"; --- 67,72 ---- return this.accountReport.BenchmarkEquityLine.MultiplyBy( normalizingFactor ); } ! public EquityChartTabPage( AccountReport accountReport , ! bool showBenchmark ) { this.Text = "Equity Line"; *************** *** 67,71 **** // (DateTime)this.accountReport.EquityHistory.GetKey( 0 ) , // (DateTime)this.accountReport.EquityHistory.GetKey( this.accountReport.EquityHistory.Count - 1 ) ); ! this.equityChart.Add( benchmark , Color.Blue ); this.Controls.Add( this.equityChart ); } --- 79,84 ---- // (DateTime)this.accountReport.EquityHistory.GetKey( 0 ) , // (DateTime)this.accountReport.EquityHistory.GetKey( this.accountReport.EquityHistory.Count - 1 ) ); ! if ( showBenchmark ) ! this.equityChart.Add( benchmark , Color.Blue ); this.Controls.Add( this.equityChart ); } |