private void LoadStdBill() { loadBillData = new BillCollection(); loadBillData.LoadBillWithStdIdFromDb(Int32.Parse(LoginUser.stdLogStudentId)); foreach (var popBill in loadBillData.pubBillCollect) { if (DateTime.Parse(popBill.Bill_DueDate) < DateTime.Today) { var setOldManage = new BillManager(); setOldManage.SetTuitionToOld(popBill.Bill_Id); SetOldPart(); stop = true; return; } lblTotalTuitionContainer.Text = popBill.Bill_FinalAmount.ToString(); lblDiscountContainer.Text = $"{popBill.Bill_Discount.ToString()}%"; lblTotalBalanceContainer.Text = popBill.Bill_Balance.ToString(); lblTotalPaymentMadeContainer.Text = popBill.Bill_PaymentMade.ToString(); lblFullPaidDateContainer.Text = popBill.Bill_DatePaid.ToString(); lblTuitionDueDateContainer.Text = popBill.Bill_DueDate.ToString(); billId = popBill.Bill_Id; } }