private void btnNewAccounting_Click(object sender, EventArgs e) { NewAccountingfrm frm = new NewAccountingfrm(); frm.ShowDialog(); Report(); }
private void btnedit_Click(object sender, EventArgs e) { if (dgvmain.CurrentRow != null) { int acid = int.Parse(dgvmain.CurrentRow.Cells["ID"].Value.ToString()); NewAccountingfrm frm = new NewAccountingfrm(); frm.AID = acid; frm.ShowDialog(); Filter(); return; } MessageBox.Show("Please Select a Row ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; }