public Bitmap MakeTorso(SectionType sectionType) { // Get the sub folder name String subFolder = sectionType.FolderName; // Return the head image from that sub folder return new Bitmap("Images/" + subFolder + "/Torso.png"); }
// Constructor public Product(String headTypeName, String torsoTypeName, String feetTypeName) { SectionTypeMaker sectionTypeMaker = new SectionTypeMaker(); this.headType = sectionTypeMaker.Make(headTypeName); this.torsoType = sectionTypeMaker.Make(torsoTypeName); this.feetType = sectionTypeMaker.Make(feetTypeName); }