Example #1
0
        private void saveDetails_Click(object sender, EventArgs e)
        {
            ProjectPOCO project = projectHelper.GetCurrentProject(ddlProjects.Text);

            if (null == project)
            {
                ShowError("Please select a project before adding project details.");
                return;
            }
            CodeScanType codeScanType = CodeScanType.None;

            if (scanTypeAutoMan.Checked)
            {
                codeScanType = CodeScanType.Hybrid;
            }
            else if (scanTypeAutomated.Checked)
            {
                codeScanType = CodeScanType.Automated;
            }
            else if (scanTypeManual.Checked)
            {
                codeScanType = CodeScanType.Manual;
            }
            else
            {
                codeScanType = CodeScanType.None;
            }

            IList <string> selectedLanguages = new List <string>();

            foreach (var c in codeLanguages.CheckedItems)
            {
                selectedLanguages.Add(c.ToString());
            }

            projectHelper.UpdateDetails(project.Name, isso.Text, developmentLead.Text, codeScanned.Checked, codeScanType, productionUrlText.Text, selectedLanguages, repository.Text);
        }
Example #2
0
        internal static void UpdateDetails(string projectName, string isso, string devLead, bool isScanned, CodeScanType codeScanType, string productionURL, IList <string> languages, string repository)
        {
            ProjectPOCO p = projectHelper.GetCurrentProject(projectName);

            p.ISSO               = isso;
            p.DevLead            = devLead;
            p.isCurrentlyScanned = isScanned;
            p.ScanConfiguration  = codeScanType;
            p.ProductionURL      = productionURL;
            p.CodeLanguages      = languages.ToList();
            p.Repository         = repository;
        }