Array ( [dirname] => . [basename] => frmInvoiceTotal.cs [extension] => cs [filename] => frmInvoiceTotal ) 1. file=./frmInvoiceTotal.cs
2. file=.//frmInvoiceTotal.cs
3. file=frmInvoiceTotal.cs
namespace InvoiceTotal { public partial class frmInvoiceTotal : Form { public frmInvoiceTotal() { InitializeComponent(); } private void btnCalculate_Click(object sender, EventArgs e) { decimal subtotal = Decimal.Parse(txtSubtotal.Text); decimal discountPct = .25m; decimal discountAmt = Math.Round(subtotal * discountPct, 2); decimal invoiceTotal = Math.Round(subtotal - discountAmt); txtDiscountPct.Text = discountPct.ToString("p1"); txtDiscountAmt.Text = discountAmt.ToString("c"); txtTotal.Text = invoiceTotal.ToString("c"); txtSubtotal.Focus(); } private void btnExit_Click(object sender, EventArgs e) { this.Close(); } } }