Exemple #1
0
        private void insert_Click(object sender, EventArgs e)
        {
            PolicyInsertUpdateForm policyInsertUpdateForm = new PolicyInsertUpdateForm(this);

            policyInsertUpdateForm.changeEnableUpdate(false);
            policyInsertUpdateForm.ShowDialog();
        }
Exemple #2
0
        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();
        }