private void btnEdit_Click(object sender, EventArgs e) { int row = dgvItems.CurrentCell.RowIndex; HIS.Base_BLL.ServiceItem item = new HIS.Base_BLL.ServiceItem(Convert.ToInt32(dgvItems["ITEM_ID", row].Value)); FrmEdit frmAdd = new FrmEdit(item, dgvItems); frmAdd.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { FrmEdit frm = new FrmEdit(); frm.ShowDialog(); }