示例#1
0
 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();
 }
示例#2
0
 private void AddNewObject()
 {
     workDoc.frmAddEditObject frm = new workDoc.frmAddEditObject();
     frm.Show();
     Refresh();
 }