[Quantproject-developers] QuantProject/b7_Scripts/CallingReportsForRunScripts ShowReportFromFile.cs,
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-04-17 13:31:59
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/CallingReportsForRunScripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25380/b7_Scripts/CallingReportsForRunScripts Modified Files: ShowReportFromFile.cs Log Message: Report form now shows what account or report is being viewed, through text caption. Index: ShowReportFromFile.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/CallingReportsForRunScripts/ShowReportFromFile.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ShowReportFromFile.cs 15 Feb 2005 19:13:41 -0000 1.3 --- ShowReportFromFile.cs 17 Apr 2005 13:31:50 -0000 1.4 *************** *** 47,50 **** --- 47,52 ---- (Account)ObjectArchiver.Extract(serializedAccountFullPath); Report report = new Report(account, new HistoricalAdjustedQuoteProvider()); + report.Text = + serializedAccountFullPath.Substring(serializedAccountFullPath.LastIndexOf("\\") + 1); ReportShower reportShower = new ReportShower(report); reportShower.Show(); *************** *** 63,66 **** --- 65,70 ---- (AccountReport)ObjectArchiver.Extract(serializedAccountReportFullPath); Report report = new Report(accountReport); + report.Text = + serializedAccountReportFullPath.Substring(serializedAccountReportFullPath.LastIndexOf("\\") + 1); report.Show(); } |