[Quantproject-developers] QuantProject/b5_Presentation/Reporting/WindowsForm SummaryTabPage.cs,1.4,1
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-04-17 23:05:11
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30722/b5_Presentation/Reporting/WindowsForm Modified Files: SummaryTabPage.cs Log Message: - added NumberWinningPeriods - added NumberLosingPeriods - added NumberEvenPeriods - added PercentageWinningPeriods Index: SummaryTabPage.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b5_Presentation/Reporting/WindowsForm/SummaryTabPage.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SummaryTabPage.cs 30 Mar 2005 23:40:58 -0000 1.4 --- SummaryTabPage.cs 17 Apr 2005 23:05:02 -0000 1.5 *************** *** 35,39 **** { // constant values for label's placement ! private int labelRows = 8; private int xForLabels = 17; private int textLabelsWidth = 180; --- 35,39 ---- { // constant values for label's placement ! private int labelRows = 10; private int xForLabels = 17; private int textLabelsWidth = 180; *************** *** 54,57 **** --- 54,65 ---- private System.Windows.Forms.Label lblTotalCommission; private System.Windows.Forms.Label lblValTotalCommission; + private System.Windows.Forms.Label lblNumberWinningPeriods; + private System.Windows.Forms.Label lblValNumberWinningPeriods; + private System.Windows.Forms.Label lblNumberLosingPeriods; + private System.Windows.Forms.Label lblValNumberLosingPeriods; + private System.Windows.Forms.Label lblNumberEvenPeriods; + private System.Windows.Forms.Label lblValNumberEvenPeriods; + private System.Windows.Forms.Label lblPercentageWinningPeriods; + private System.Windows.Forms.Label lblValPercentageWinningPeriods; private System.Windows.Forms.Label lblTotalNumberOfTrades; private System.Windows.Forms.Label lblValTotalNumberOfTrades; *************** *** 135,138 **** --- 143,154 ---- this.lblTotalCommission = new System.Windows.Forms.Label(); this.lblValTotalCommission = new System.Windows.Forms.Label(); + this.lblNumberWinningPeriods = new System.Windows.Forms.Label(); + this.lblValNumberWinningPeriods = new System.Windows.Forms.Label(); + this.lblNumberLosingPeriods = new System.Windows.Forms.Label(); + this.lblValNumberLosingPeriods = new System.Windows.Forms.Label(); + this.lblNumberEvenPeriods = new System.Windows.Forms.Label(); + this.lblValNumberEvenPeriods = new System.Windows.Forms.Label(); + this.lblPercentageWinningPeriods = new System.Windows.Forms.Label(); + this.lblValPercentageWinningPeriods = new System.Windows.Forms.Label(); this.lblTotalNumberOfTrades = new System.Windows.Forms.Label(); this.lblValTotalNumberOfTrades = new System.Windows.Forms.Label(); *************** *** 210,213 **** --- 226,256 ---- this.addValueLabel( this.lblValTotalCommission , "lblValTotalCommission" ); // + // lblNumberWinningPeriods + // + this.addTextLabel( this.lblNumberWinningPeriods , "lblNumberWinningPeriods" , + "Number Winning Periods:" ); + // + // lblValNumberWinningPeriods + // + this.addValueLabel( this.lblValNumberWinningPeriods , "lblValNumberWinningPeriods" ); + // + // lblNumberLosingPeriods + // + this.addTextLabel( this.lblNumberLosingPeriods , "lblNumberWinningPeriods" , + "Number Losing Periods:" ); + // + // lblValNumberLosingPeriods + // + this.addValueLabel( this.lblValNumberLosingPeriods , "lblValNumberLosingPeriods" ); + // + // lblPercentageWinningPeriods + // + this.addTextLabel( this.lblPercentageWinningPeriods , "lblPercentageWinningPeriods" , + "% Winning Periods:" ); + // + // lblValPercentageWinningPeriods + // + this.addValueLabel( this.lblValPercentageWinningPeriods , "lblValPercentageWinningPeriods" ); + // // lblTotalNumberOfTrades // *************** *** 315,318 **** --- 358,367 ---- this.lblValTotalCommission.Text = FormatProvider.ConvertToStringWithTwoDecimals( this.accountReport.Summary.TotalCommissionAmount ); + this.lblValNumberWinningPeriods.Text = + this.accountReport.Summary.NumberWinningPeriods.ToString(); + this.lblValNumberLosingPeriods.Text = + this.accountReport.Summary.NumberLosingPeriods.ToString(); + this.lblValPercentageWinningPeriods.Text = + FormatProvider.ConvertToStringWithTwoDecimals( this.accountReport.Summary.PercentageWinningPeriods ); this.lblValTotalNumberOfTrades.Text = FormatProvider.ConvertToStringWithTwoDecimals( this.accountReport.Summary.TotalNumberOfTrades ); |