Ejemplo n.º 1
0
        private void RequirementRemove_Click(object sender, System.EventArgs e)
        {
            FormSelectRequirement form = new FormSelectRequirement(featureRepository, requirementRepository, projectSelection, 1);

            form.ShowDialog();
            form.Dispose();
        }
Ejemplo n.º 2
0
        private void modifyToolStripMenuItem1_Click(object sender, System.EventArgs e)
        {
            FormSelectRequirement formSelectRequirement = new FormSelectRequirement(selected_id);

            formSelectRequirement.ShowDialog();
            if (formSelectRequirement.DialogResult == DialogResult.OK)
            {
                FormRequirementModify formRequirementModify = new FormRequirementModify(selected_id, formSelectRequirement.selectedRequirementID);
                formRequirementModify.ShowDialog();
                formRequirementModify.Dispose();
            }
        }
        private void modifyToolStripMenuItem1_Click(object sender, System.EventArgs e)
        {
            FormSelectRequirement selectARequirement = new FormSelectRequirement(currentProjectID);

            selectARequirement.ShowDialog();
            if (selectARequirement.getRequirementId() != -1)
            {
                FormModifyRequirement modifyRequirement = new FormModifyRequirement(selectARequirement.getRequirementId());
                modifyRequirement.ShowDialog();
                modifyRequirement.Dispose();
            }
        }
        private void removeToolStripMenuItem1_Click(object sender, System.EventArgs e)
        {
            FormSelectRequirement selectARequirement = new FormSelectRequirement(currentProjectID);

            selectARequirement.ShowDialog();
            if (selectARequirement.getRequirementId() != -1)
            {
                DialogResult messageBoxResult = MessageBox.Show("Are you sure you want to remove this requirement?", "Confirmation", MessageBoxButtons.YesNo);
                if (messageBoxResult == DialogResult.Yes)
                {
                    requirementRepository.Remove(requirementRepository.GetRequirementById(selectARequirement.getRequirementId()));
                }
            }
        }
Ejemplo n.º 5
0
        private void removeToolStripMenuItem1_Click(object sender, System.EventArgs e)
        {
            FormSelectRequirement     form = new FormSelectRequirement(selected_id);
            FakeFeatureRepository     fakeFeatureRepository     = new FakeFeatureRepository(selected_id);
            FakeRequiremnetRepository fakeRequiremnetRepository = new FakeRequiremnetRepository(selected_id);

            form.ShowDialog();
            Requirement  r            = fakeRequiremnetRepository.GetRequirementByID(form.selectedRequirementID);
            string       del          = "Are you sure you want to delete " + r.Statement + " ?";
            DialogResult dialogResult = MessageBox.Show(del, "Confirmation", MessageBoxButtons.YesNo);

            if (form.DialogResult == DialogResult.OK)
            {
                fakeRequiremnetRepository.Remove(r);
            }
        }