private void btn_Add_Click(object sender, EventArgs e) { frm_Add_Finish_Item f = new frm_Add_Finish_Item("add"); f.Show(); this.Close(); }
private void tn_FItem_Details_Click(object sender, EventArgs e) { try { int currentID = Convert.ToInt32(dgv_Store_Search.CurrentRow.Cells[0].Value); frm_Add_Finish_Item f2 = new frm_Add_Finish_Item(currentID, "view"); f2.ShowDialog(); } catch (Exception exp) { MessageBox.Show(exp.Message); } }