private void insert_Click(object sender, EventArgs e) { PolicyInsertUpdateForm policyInsertUpdateForm = new PolicyInsertUpdateForm(this); policyInsertUpdateForm.changeEnableUpdate(false); policyInsertUpdateForm.ShowDialog(); }
private void update_Click(object sender, EventArgs e) { PolicyInsertUpdateForm policyInsertUpdateForm = new PolicyInsertUpdateForm(this); policyInsertUpdateForm.changeEnableInsert(false); if (policyTable.CurrentRow != null) { String description = policyTable.CurrentRow.Cells[0].Value.ToString(); String value = policyTable.CurrentRow.Cells[1].Value.ToString(); policyInsertUpdateForm.changeEnableDescriptionTextBox(false); policyInsertUpdateForm.setData(description, value); } policyInsertUpdateForm.ShowDialog(); }