예제 #1
0
        private void btnAddRecord_Click(object sender, EventArgs e)
        {
            using (var page = new AddBankAccountPage())
            {
                page.ShowDialog();
            }

            BankAccountsPage_Load(null, null);
        }
예제 #2
0
        private void EditRecord()
        {
            using (var page = new AddBankAccountPage())
            {
                if (dgv.CurrentRow != null)
                {
                    page.BankId = (int)dgv.CurrentRow.Cells["clnId"].Value;
                    page.ShowDialog();
                }
            }

            BankAccountsPage_Load(null, null);
        }