private void btnUpdate_Click(object sender, EventArgs e) { int id = int.Parse(dgvListEquipmentType.Rows[dgvListEquipmentType.CurrentRow.Index].Cells[0].Value.ToString()); createForm = new EquipmentTypeControlForm(id); createForm.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { createForm = new EquipmentTypeControlForm(); createForm.ShowDialog(); }