Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            EditProject editProject = new EditProject();

            editProject.Name = label6.Text;

            DialogResult result = editProject.ShowDialog();

            if (result == DialogResult.OK)
            {
                label6.Text = editProject.Name;
                p.Manager   = label6.Text;
            }
        }
Beispiel #2
0
        private void listProjects_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (listProjects.SelectedItem == null)
            {
                return;
            }

            Project     selectedProject = (Project)listProjects.SelectedItem;
            EditProject editProject     = new EditProject(this.Projects);

            editProject.Name = selectedProject.Name;
            DialogResult result = editProject.ShowDialog();

            if (result == DialogResult.OK)
            {
                selectedProject.Name = editProject.Name;
            }
            listProjects.Items.Add(selectedProject); //find new way for editing
            listProjects.Items.Remove(selectedProject);
        }
Beispiel #3
0
        private void listMembers_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (listMembers.SelectedItem == null)
            {
                return;
            }

            Member      selectedMembers = (Member)listMembers.SelectedItem;
            EditProject editProject     = new EditProject(this.p.GetMembers());

            editProject.Name = selectedMembers.Name;
            DialogResult result = editProject.ShowDialog();

            if (result == DialogResult.OK)
            {
                selectedMembers.Name = editProject.Name;
            }

            listMembers.Items.Remove(selectedMembers);
            listMembers.Items.Add(selectedMembers);
        }
Beispiel #4
0
        //non-functional requirements VVV
        private void listBox3_DoubleClick(object sender, EventArgs e)
        {
            if (listBox3.SelectedItem == null)
            {
                return;
            }

            string      nfr         = (string)listBox3.SelectedItem;
            EditProject editProject = new EditProject(this.p.GetNonFunctionalRequirements(), false);

            editProject.Name = nfr;
            DialogResult result = editProject.ShowDialog();

            if (result == DialogResult.OK)
            {
                listBox3.Items.Remove(nfr);
                p.RemoveNonFunctionalRequirement(nfr);
                nfr = editProject.Name;
            }
            listBox3.Items.Add(nfr);
            p.AddNonFunctionalRequirement(nfr);
        }
Beispiel #5
0
        private void listFunctionalities_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (listFunctionalities.SelectedItem == null)
            {
                return;
            }

            string      fr          = (string)listFunctionalities.SelectedItem;
            EditProject editProject = new EditProject(this.p.GetFunctionalRequirements(), true);

            editProject.Name = fr;
            DialogResult result = editProject.ShowDialog();

            if (result == DialogResult.OK)
            {
                listFunctionalities.Items.Remove(fr);
                p.RemoveFunctionalRequirement(fr);
                fr = editProject.Name;
            }
            listFunctionalities.Items.Add(fr);
            p.AddFunctionalRequirement(fr);
        }