Exemplo n.º 1
0
        protected override void buttonEdit_Click(object sender, EventArgs e)
        {
            TId criterionId = GetSelectedEntityId();

            if (criterionId != -1)
            {
                EditAdequacyCriterionForm editForm = new EditAdequacyCriterionForm(ModelStorage.Instance.Model.Criteria[criterionId]);
                EditEntity(editForm, ModelStorage.Instance.Model.Criteria, criterionId);
            }
        }
Exemplo n.º 2
0
        protected override void buttonAdd_Click(object sender, EventArgs e)
        {
            EditAdequacyCriterionForm addForm = new EditAdequacyCriterionForm();

            AddEntity(addForm, ModelStorage.Instance.Model.Criteria);
        }