Appendix F. Document Management

CONSIDER THE RATES OF RETURN application shown in Figure F.1, an application used to calculate both average and annualized rates of return.

Figure F.1. The Rates of Return Application

Image

Each row represents a single period of return that's encapsulated by the PeriodReturn type:

// PeriodReturn.csclass PeriodReturn {   string period;   decimal returnRate;   decimal principal;   public PeriodReturn() {}   public PeriodReturn(     string period, decimal returnRate, decimal principal) {     this.period = period;     this.returnRate = returnRate;     this.principal = principal;   }   public string Period {     get { return this.period; } ...

Get Windows Forms 2.0 Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.