/// <summary> /// This WILL modify the current class's CurrentMonth and CurrentBalance /// Make payment to loan returns payment information /// Adds payment to Payments within this class /// </summary> /// <param name="amount"></param> /// <returns></returns> public Payment MakeSinglePayment(decimal amount) { Payment pmt = new Payment(Name, CurrentMonth, Apr, Balance, amount); Balance = pmt.NewBalance; CurrentMonth = CurrentMonth.AddMonths(1); Payments.Add(pmt); return(pmt); }
private void buttonLeft_Click(object sender, EventArgs e) { CurrentMonth = CurrentMonth.AddMonths(-1); Display(); }
void BtnNext_Click(object sender, EventArgs e) { CurrentMonth = CurrentMonth.AddMonths(1); CreateCalendar(); }
void BtnPrevious_Click(object sender, EventArgs e) { CurrentMonth = CurrentMonth.AddMonths(-1); CreateCalendar(); }