private void btn_View_Details_Click(object sender, EventArgs e) { try { int currentID = Convert.ToInt32(dgv_Return_Find.CurrentRow.Cells[0].Value); frm_Returns f2 = new frm_Returns(currentID, "view"); f2.ShowDialog(); } catch (Exception exp) { MessageBox.Show(exp.Message); } }
private void btn_Add_Click(object sender, EventArgs e) { frm_Returns f1 = new frm_Returns("add"); f1.ShowDialog(); }