public async void LoadFields() { CollectablesModel collectable = await collectables.GetSingle(loanId); picImage.Image = Image.FromFile(collectable.Borrower.Image); txtBorrowerId.Text = collectable.Borrower.BorrowerID; txtBorrowerName.Text = collectable.Borrower.FullName; txtMaturity.Text = collectable.Loan.MaturityValue.ToString("c"); txtPerRemit.Text = collectable.Loan.PerRemittance.ToString("c"); txtCollector.Text = collectable.Loan.Collector; txtLoanId.Text = collectable.Loan.LoanId; txtDueDate.Text = $"{collectable.DueDate.Month}/{collectable.DueDate.Day}/{collectable.DueDate.Year}"; txtDueAmount.Text = collectable.Loan.PerRemittance.ToString("c"); txtBalance.Text = (collectable.Loan.TotalBalance - collectable.Loan.PerRemittance).ToString("c"); totalBalance = collectable.Loan.TotalBalance; txtAmount.Text = collectable.Loan.PerRemittance.ToString("c"); txtTotalBal.Text = collectable.Loan.TotalBalance.ToString("c"); collectableId = collectable.Id; txtTO.Text = frmDashboard.user.Name; txtPaidBy.Text = collectable.Borrower.FullName; collection.Amount = collectable.Loan.PerRemittance; collection.Date = DateTime.Now; collection.LoanId = loanId; collection.BorrowerId = collectable.Borrower.Id; }