Ejemplo n.º 1
0
        private async void btnSave_Click_1(object sender, EventArgs e)
        {
            Loans l = new Loans();

            decimal balance = Convert.ToDecimal(txtBalance.Text.Substring(1));

            if (await collectables.Delete(collectableId))
            {
                if (await l.UpdateBalance(loanId, balance))
                {
                    if (await collections.Add(collection))
                    {
                        MetroFramework.MetroMessageBox.Show(this, "Remittance is Successfully Submitted. New Balance is Updated.", "Remittance",
                                                            MessageBoxButtons.OK, MessageBoxIcon.Question);
                        btnPrint.Visible = true;
                        refresh();
                    }
                }
            }
        }