[Quantproject-developers] QuantProject/b7_Scripts/CallingReportsForRunScripts ShowReportFromFile.c
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2009-03-07 04:23:25
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/CallingReportsForRunScripts In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21742/CallingReportsForRunScripts Modified Files: ShowReportFromFile.cs Log Message: the method ShowReportFromSerializedAccountReport() returns a Report, now (it was void in the previous revision) Index: ShowReportFromFile.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/CallingReportsForRunScripts/ShowReportFromFile.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ShowReportFromFile.cs 29 Sep 2008 21:16:45 -0000 1.6 --- ShowReportFromFile.cs 7 Mar 2009 04:23:19 -0000 1.7 *************** *** 61,71 **** } ! public static void ShowReportFromSerializedAccountReport(string serializedAccountReportFullPath) { try { AccountReport accountReport = (AccountReport)ObjectArchiver.Extract(serializedAccountReportFullPath); ! Report report = new Report(accountReport); report.Text = serializedAccountReportFullPath.Substring(serializedAccountReportFullPath.LastIndexOf("\\") + 1); --- 61,73 ---- } ! public static Report ShowReportFromSerializedAccountReport( ! string serializedAccountReportFullPath ) { + Report report = null; try { AccountReport accountReport = (AccountReport)ObjectArchiver.Extract(serializedAccountReportFullPath); ! report = new Report(accountReport); report.Text = serializedAccountReportFullPath.Substring(serializedAccountReportFullPath.LastIndexOf("\\") + 1); *************** *** 76,79 **** --- 78,82 ---- System.Windows.Forms.MessageBox.Show(ex.ToString()); } + return report; } |