private void btnEdit_Click(object sender, EventArgs e) { String compId = dataGCompany[0, dataGCompany.CurrentCell.RowIndex].Value.ToString(); String compName = dataGCompany[1, dataGCompany.CurrentCell.RowIndex].Value.ToString(); frmCompany_frmAddEdit frmCompany_frmAddEdit = new frmCompany_frmAddEdit(this, compId); frmCompany_frmAddEdit.Show(); }
private void btnAdd_Click(object sender, EventArgs e) { frmCompany_frmAddEdit frmCompany_frmAddEdit = new frmCompany_frmAddEdit(this); frmCompany_frmAddEdit.Show(); }