[Quantproject-developers] QuantProject/b5_Presentation/Reporting/WindowsForm ReportTabControl.cs,1.3
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2006-05-31 14:25:05
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv8096/b5_Presentation/Reporting/WindowsForm Modified Files: ReportTabControl.cs Log Message: The public Chart EquityChart property has been added. Now the report chart is available to the world outside the visual report. Index: ReportTabControl.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/ReportTabControl.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ReportTabControl.cs 4 Jun 2005 15:20:46 -0000 1.3 --- ReportTabControl.cs 31 May 2006 14:24:58 -0000 1.4 *************** *** 22,26 **** --- 22,28 ---- using System; using System.Windows.Forms; + using QuantProject.Business.Financial.Accounting.Reporting; + using QuantProject.Presentation.Charting; namespace QuantProject.Presentation.Reporting.WindowsForm *************** *** 42,51 **** get { return this.transactions.ReportGrid; } } ! public ReportTabControl( AccountReport accountReport ) { this.accountReport = accountReport; this.Dock = DockStyle.Fill; ! this.equityChart = new EquityChartTabPage( this.accountReport ); this.Controls.Add( this.equityChart ); this.summary = new SummaryTabPage( this.accountReport ); --- 44,65 ---- get { return this.transactions.ReportGrid; } } + public Chart EquityChart + { + get { return this.equityChart.EquityChart; } + } ! /// <summary> ! /// Contains all tab pages of a visual report ! /// </summary> ! /// <param name="accountReport">data for the report to be shown</param> ! /// <param name="showBenchmark">true iif the benchmark equity line ! /// is to be shown</param> ! public ReportTabControl( AccountReport accountReport , ! bool showBenchmark ) { this.accountReport = accountReport; this.Dock = DockStyle.Fill; ! this.equityChart = new EquityChartTabPage( this.accountReport , ! showBenchmark ); this.Controls.Add( this.equityChart ); this.summary = new SummaryTabPage( this.accountReport ); |