[Quantproject-developers] QuantProject/b5_Presentation/Reporting/WindowsForm Report.cs, 1.19, 1.20
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-08-19 17:13:37
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3611/b5_Presentation/Reporting/WindowsForm Modified Files: Report.cs ReportTabControl.cs Log Message: - the code has been cleaned up to avoid warnings - standard indentation has been applied Index: ReportTabControl.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/ReportTabControl.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ReportTabControl.cs 6 Feb 2008 23:16:39 -0000 1.5 --- ReportTabControl.cs 19 Aug 2008 17:13:02 -0000 1.6 *************** *** 3,7 **** ReportTabControl.cs ! Copyright (C) 2003 Glauco Siliprandi --- 3,7 ---- ReportTabControl.cs ! Copyright (C) 2003 Glauco Siliprandi *************** *** 19,23 **** along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! */ using System; using System.Runtime.Serialization; --- 19,23 ---- along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! */ using System; using System.Runtime.Serialization; *************** *** 60,64 **** /// <param name="context"></param> protected ReportTabControl( SerializationInfo info , StreamingContext context ) : ! base() { // get the set of serializable members for this class and its base classes --- 60,64 ---- /// <param name="context"></param> protected ReportTabControl( SerializationInfo info , StreamingContext context ) : ! base() { // get the set of serializable members for this class and its base classes *************** *** 68,72 **** // deserialize the fields from the info object ! for (Int32 i = 0 ; i < mi.Length; i++) { FieldInfo fieldInfo = (FieldInfo) mi[i]; --- 68,72 ---- // deserialize the fields from the info object ! for (Int32 i = 0 ; i < mi.Length; i++) { FieldInfo fieldInfo = (FieldInfo) mi[i]; *************** *** 76,83 **** { fieldInfo.SetValue( this , ! info.GetValue( fieldInfo.Name, fieldInfo.FieldType ) ); } catch(Exception ex) ! {ex = ex;} } } --- 76,85 ---- { fieldInfo.SetValue( this , ! info.GetValue( fieldInfo.Name, fieldInfo.FieldType ) ); } catch(Exception ex) ! { ! string forBreakpoint = ex.Message; forBreakpoint = forBreakpoint + ""; ! } } } *************** *** 89,101 **** /// <param name="context"></param> void ISerializable.GetObjectData( ! SerializationInfo info, StreamingContext context) { // get the set of serializable members for this class and base classes Type thisType = this.GetType(); ! MemberInfo[] mi = FormatterServices.GetSerializableMembers( thisType , context); // serialize the fields to the info object ! for (Int32 i = 0 ; i < mi.Length; i++) { info.AddValue(mi[i].Name, ((FieldInfo) mi[i]).GetValue(this)); --- 91,103 ---- /// <param name="context"></param> void ISerializable.GetObjectData( ! SerializationInfo info, StreamingContext context) { // get the set of serializable members for this class and base classes Type thisType = this.GetType(); ! MemberInfo[] mi = FormatterServices.GetSerializableMembers( thisType , context); // serialize the fields to the info object ! for (Int32 i = 0 ; i < mi.Length; i++) { info.AddValue(mi[i].Name, ((FieldInfo) mi[i]).GetValue(this)); *************** *** 110,119 **** /// 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 ); --- 112,121 ---- /// 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 ); Index: Report.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/Report.cs,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** Report.cs 6 Mar 2008 20:23:04 -0000 1.19 --- Report.cs 19 Aug 2008 17:13:01 -0000 1.20 *************** *** 226,230 **** this.saveFileDialog.DefaultExt = "qPr"; this.saveFileDialog.InitialDirectory = ! System.Configuration.ConfigurationSettings.AppSettings["ReportsArchive"]; } else if(sender.Text.EndsWith("Account")) --- 226,230 ---- this.saveFileDialog.DefaultExt = "qPr"; this.saveFileDialog.InitialDirectory = ! System.Configuration.ConfigurationManager.AppSettings["ReportsArchive"]; } else if(sender.Text.EndsWith("Account")) *************** *** 234,238 **** this.saveFileDialog.DefaultExt = "qPa"; this.saveFileDialog.InitialDirectory = ! System.Configuration.ConfigurationSettings.AppSettings["AccountsArchive"]; } else if(sender.Text.EndsWith("Transactions")) --- 234,238 ---- this.saveFileDialog.DefaultExt = "qPa"; this.saveFileDialog.InitialDirectory = ! System.Configuration.ConfigurationManager.AppSettings["AccountsArchive"]; } else if(sender.Text.EndsWith("Transactions")) |