Esempio n. 1
0
        private void btnAddProject_Click(object sender, EventArgs e)
        {
            DetailedProjectForm detailedProjectForm = new DetailedProjectForm();

            detailedProjectForm.ShowDialog();
            load();
        }
Esempio n. 2
0
        private void btnDUProject_Click(object sender, System.EventArgs e)
        {
            ProjectEntity projectEntity = new ProjectEntity();

            projectEntity.ID           = (int)grvProject.GetDataRow(grvProject.GetSelectedRows()[0]).ItemArray[0];
            projectEntity.ProjectCode  = grvProject.GetDataRow(grvProject.GetSelectedRows()[0]).ItemArray[1].ToString();
            projectEntity.ProjectName  = grvProject.GetDataRow(grvProject.GetSelectedRows()[0]).ItemArray[2].ToString();
            projectEntity.StartedDate  = (DateTime)grvProject.GetDataRow(grvProject.GetSelectedRows()[0]).ItemArray[3];
            projectEntity.EndDate      = (DateTime)grvProject.GetDataRow(grvProject.GetSelectedRows()[0]).ItemArray[4];
            projectEntity.ScopeMM      = (int)grvProject.GetDataRow(grvProject.GetSelectedRows()[0]).ItemArray[5];
            projectEntity.CustomerName = grvProject.GetDataRow(grvProject.GetSelectedRows()[0]).ItemArray[6].ToString();
            projectEntity.Status       = (ProjectStatusValue)grvProject.GetDataRow(grvProject.GetSelectedRows()[0]).ItemArray[7];

            DetailedProjectForm detailedProjectForm = new DetailedProjectForm(projectEntity);

            detailedProjectForm.ShowDialog();

            load();
        }