private void btnLoans_Click(object sender, EventArgs e)
 {
     using (frmNewLoan frm = new frmNewLoan())
     {
         frm.ShowDialog();
     }
 }
 private void btnClose_Click_1(object sender, EventArgs e)
 {
     this.Close();
     using (frmNewLoan frm = new frmNewLoan())
     {
         frm.ShowDialog();
     }
 }
示例#3
0
        private void btnView_Click(object sender, EventArgs e)
        {
            if (lstSummary.SelectedItems.Count > 0)
            {
                string token = lstSummary.SelectedItems[0].Text.Substring(4);
                int    id    = int.Parse(token);

                using (frmNewLoan frm = new frmNewLoan())
                {
                    frm.loanId    = id;
                    frm.operation = "view";
                    frm.ShowDialog();
                }
            }
            else
            {
                MetroFramework.MetroMessageBox.Show(this, "Please Select An Item to Continue", "View", MessageBoxButtons.OK, MessageBoxIcon.Warning, this.Height / 2);
            }
        }