private void EditObject() { workDoc.frmAddEditObject frm = new workDoc.frmAddEditObject(); frm.id = int.Parse(dgvObjectsHandbook.CurrentRow.Cells[0].Value.ToString()); frm.str = dgvObjectsHandbook.CurrentRow.Cells[1].Value.ToString(); frm.Show(); Refresh(); }
private void AddNewObject() { workDoc.frmAddEditObject frm = new workDoc.frmAddEditObject(); frm.Show(); Refresh(); }