コード例 #1
0
        public void setTMType(string input, bool local)
        {
            switch (input)
            {
            case "FOUNDSTONE":
                foundstone = new FoundstoneMethods(currentDir, configPath, em, utilities);
                tmc        = new TMComparisonFoundstone();
                if (local)
                {
                    excel = new ExcelFoundstone(foundstone);
                }
                else
                {
                    excel = new WebFoundstone(foundstone);
                }
                break;

            case "SCAP":
                scap = new ScapMethods(currentDir, configPath, em, utilities);
                tmc  = new TMComparisonSCAP();
                if (local)
                {
                    excel = new ExcelScap(scap);
                }
                else
                {
                    excel = new WebScap(scap);
                }
                break;

            case "RM":  excel = new ExcelRM(currentDir, configPath, em, utilities);
                break;
            }
        }
コード例 #2
0
 //Constructor
 public WebFoundstone(FoundstoneMethods foundstone)
 {
     this.foundstone = foundstone;
 }
コード例 #3
0
 //Constructor
 public ExcelFoundstone(FoundstoneMethods foundstone)
 {
     this.foundstone = foundstone;
 }