private void btnCreate_Click(object sender, EventArgs e) { frmProductsManage manage = new frmProductsManage(); manage.StartPosition = FormStartPosition.CenterParent; manage.ShowDialog(); LoadData(); }
private void grv_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (grv.SelectedRows.Count != 0) { long productID = long.Parse(grv.CurrentRow.Cells[0].Value.ToString()); frmProductsManage manage = new frmProductsManage(productID); manage.StartPosition = FormStartPosition.CenterParent; manage.ShowDialog(); LoadData(); } }