[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRo
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-06-19 14:46:22
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8866/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows Modified Files: SummaryRow.cs Log Message: no message Index: SummaryRow.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows/SummaryRow.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SummaryRow.cs 20 Mar 2005 18:30:58 -0000 1.3 --- SummaryRow.cs 19 Jun 2005 14:46:07 -0000 1.4 *************** *** 11,14 **** --- 11,15 ---- internal string rowDescription; internal object rowValue; + internal string format; public string Description *************** *** 28,39 **** return returnValue; } ! set { rowValue = value; } } public SummaryRow() { ! // ! // TODO: Add constructor logic here ! // } } --- 29,50 ---- return returnValue; } ! set { this.rowValue = value; } } + public string FormattedValue + { + get + { + string returnValue = ""; + if ( this.format == "" ) + throw new Exception( "No format has been defined!" ); + if ( this.rowValue != null ) + returnValue = string.Format( "{0:" + this.format + "}" , this.Value ); + return returnValue; + } + } public SummaryRow() { ! this.format = ""; } } |