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; } }
//Constructor public WebFoundstone(FoundstoneMethods foundstone) { this.foundstone = foundstone; }
//Constructor public ExcelFoundstone(FoundstoneMethods foundstone) { this.foundstone = foundstone; }