private void btnEdit_Click(object sender, EventArgs e) { if (dgvReport.CurrentRow != null) { var id = int.Parse(dgvReport.CurrentRow.Cells[0].Value.ToString()); var frmNewAccount = new frmNewTransAction(); frmNewAccount.accountingId = id; if (frmNewAccount.ShowDialog() == DialogResult.OK) { Filter(); } } }
private void btnAddAccounting_Click(object sender, EventArgs e) { var frmNewTransAction = new frmNewTransAction(); frmNewTransAction.ShowDialog(); }