Exemplo n.º 1
0
        private void datagrid_bank_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var senderGrid = (DataGridView)sender;

            if (senderGrid.Columns[e.ColumnIndex].HeaderText == "Edit")
            {
                BankDetailsEntry bankDetailsEntry = new BankDetailsEntry(int.Parse(senderGrid.Rows[e.RowIndex].Cells["AccountHeadId"].Value.ToString()));
                bankDetailsEntry.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void createBankAccountToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BankDetailsEntry bank = new BankDetailsEntry();

            bank.ShowDialog();
        }