Esempio n. 1
0
 public Form1()
 {
     InitializeComponent();
     data        = new ProjectManagementTool.DataManagement();
     allProjects = data.allProjects();
     setUpDataGrid(allProjects);
     this.projectsDataGrid.AutoResizeColumns();
 }
Esempio n. 2
0
        /* CONSTRUCTOR
         *      This one is used for loading a previous project.
         *      "data" is used for the
         */
        public Form2(Project p)
        {
            InitializeComponent();
            data = new DataManagement();

            currentProject = data.getProject(p.ProjectID);
            init();
        }
Esempio n. 3
0
        Project currentProject;      // to store the current most project we are working with. ALWAYS make sure this is updated with the database.

        //This takes in a Project because we need to add Team member to a PROJECT
        //After any updates to "currentProject" we will update it in the database using data.updateProject(currentProject);
        public AddTeamMember(Project p)
        {
            InitializeComponent();

            currentProject = p;
            data           = new ProjectManagementTool.DataManagement();
            fillPersonDataGrid();
        }
Esempio n. 4
0
 public CreateTask(Project p, int reqIndex)
 {
     InitializeComponent();
     currentProject = p;
     index          = reqIndex;
     data           = new ProjectManagementTool.DataManagement();
     fillPersonDataGrid();
 }
Esempio n. 5
0
        private void UI_addButton_Click(object sender, EventArgs e)
        {
            DataManagement data = new DataManagement();
            Person         p    = new ProjectManagementTool.Person(this.UI_firstName.Text, this.UI_lastName.Text, this.UI_title.Text);

            data.addPerson(p);
            this.Close();
        }
Esempio n. 6
0
        public ProjectBasics(Project p, Form2 f)
        {
            InitializeComponent();
            currentProject = p;
            lastWindow     = f;

            data = new ProjectManagementTool.DataManagement();

            refresh();
        }
        public AddTaskHours(Project p, int req, int task)
        {
            InitializeComponent();

            currentProject = p;
            data           = new DataManagement();

            this.req  = req;
            this.task = task;
        }
Esempio n. 8
0
        /* CONSTRUCTOR.
         *      This is when a NEW project is created. Dummy text is applied to project properties
         *      that the user will need to change.
         */
        public Form2()
        {
            InitializeComponent();
            data = new DataManagement();

            Project p = new Project(new Person("CHANGE", "ME", "PLEASE"), new Person("CHANGE", "ME", "PLEASE"), "Change Me");

            data.addProject(p);
            currentProject = p;

            init();
        }
        private void buttonReqSave_Click(object sender, EventArgs e)
        {
            data = new DataManagement();
            //Parses the text from the Requirements Category text box into an enum
            string reqCatText = this.comboBoxReqType.Text;
            RequirementCategory reqCat;

            if (string.Compare(reqCatText, "Functional") == 0)
            {
                reqCat = (RequirementCategory)Enum.Parse(typeof(RequirementCategory), "FUNCTIONAL");
            }
            else
            {
                reqCat = (RequirementCategory)Enum.Parse(typeof(RequirementCategory), "NONFUNCTIONAL");
            }
            //Creates the requirement object
            Requirement reqOut = new ProjectManagementTool.Requirement(this.reqDescription.Text, Convert.ToInt32(this.comboBoxReqPriority.Text), reqCat);

            //Adds new requirement to the project and updates the save file
            currentProject.addRequirement(reqOut);
            data.updateProject(currentProject);
            this.Close();
        }