private void gridControl1_DoubleClick(object sender, EventArgs e) { int ProductID = Convert.ToInt32(gridView1.GetFocusedRowCellValue("م")); frmAddProduct frm = new frmAddProduct(); frm.add = false; frm.ProductID = ProductID; frm.ShowDialog(); frmShowCategory_Load(sender, e); }
private void simpleButton2_Click(object sender, EventArgs e) { frmAddProduct frm = new frmAddProduct(); frm.ShowDialog(); }