private void MniEditItem_Click(object sender, EventArgs e) { frmDomainItem vFrmDomainItem = new frmDomainItem(); vFrmDomainItem.SetInfo(FDomainID, int.Parse(dgvCV.Rows[dgvCV.SelectedRows[0].Index].Cells[3].Value.ToString())); if (vFrmDomainItem.DialogResult == DialogResult.OK) { GetDomainItem(); } }
private void MniNewItem_Click(object sender, EventArgs e) { frmDomainItem vFrmDomainItem = new frmDomainItem(); vFrmDomainItem.SetInfo(FDomainID, 0); if (vFrmDomainItem.DialogResult == DialogResult.OK) { GetDomainItem(); } }