public string Save() { // csv format that will be saved return(Name + "," + Salary.ToString("N") + "," + InvestmentIncome.ToString("N") + "," + TaxableIncome.ToString("N") + "," + FormatTaxRate() + "," + ComputeTax().ToString("N")); }
// output methods public string Info() { // this is what USED to be displayed by the submit button return("Name: " + Name + ", Salary: " + Salary.ToString("C") + ", Investment Income: " + InvestmentIncome.ToString("C") + ", Exemptions: " + Exemptions.ToString() + ", Marital Status: " + FormatMarriedString() + Environment.NewLine); }