Esempio n. 1
0
        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");
        }
Esempio n. 2
0
        // 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);
        }