void PrevDressItemType(object sender, EventArgs e)
        {
            switch (menuSelected)
            {
            case DressPartType.FrontBodice:

                break;

            case DressPartType.BackBodice:
                menuPosition = 0;
                dress.FrontBodiceOptions(dressOptions, menuPosition * 8);
                menuSelected = DressPartType.FrontBodice;
                break;

            case DressPartType.FrontSkirt:
                menuPosition = 0;
                dress.BackBodiceOptions(dressOptions, menuPosition * 8);
                menuSelected = DressPartType.BackBodice;
                break;

            case DressPartType.BackSkirt:
                menuPosition = 0;
                dress.FrontSkirtOptions(dressOptions, menuPosition * 8);
                menuSelected = DressPartType.FrontSkirt;
                break;

            case DressPartType.FrontSleeves:
                menuPosition = 0;
                dress.BackSkirtOptions(dressOptions, menuPosition * 8);
                menuSelected = DressPartType.BackSkirt;
                break;
            }
            maxMenuPosition = dress.GetLength(menuSelected) / 8; //Sets max menu position to stop us moving to far along in the menu
        }
 /// <summary>
 /// Gets the amount of options.
 /// </summary>
 /// <returns>The amount of options.</returns>
 /// <param name="partType">Part type.</param>
 static public int GetOptionAmount(DressPartType partType)
 {
     if (images[partType].Count < icons[partType].Count)
     {
         return(images[partType].Count);
     }
     else
     {
         return(icons[partType].Count);
     }
 }
        public void SelectPart(DressPartType menuSelected, int index)
        {
            switch (menuSelected)
            {
            case DressPartType.FrontBodice:
                frontBodice.SelectPart(index);
                if (facing == Facing.Front)
                {
                    Flip();
                }
                break;

            case DressPartType.BackBodice:
                backBodice.SelectPart(index);
                if (facing == Facing.Back)
                {
                    Flip();
                }
                break;

            case DressPartType.FrontSkirt:
                frontSkirt.SelectPart(index);
                if (facing == Facing.Front)
                {
                    Flip();
                }
                break;

            case DressPartType.BackSkirt:
                backSkirt.SelectPart(index);
                if (facing == Facing.Back)
                {
                    Flip();
                }
                break;

            case DressPartType.FrontSleeves:
                sleeves.SelectPart(index);
                if (facing == Facing.Front)
                {
                    sleeves.BackHide();
                    sleeves.FrontShow();
                }
                else
                {
                    sleeves.BackShow();
                    sleeves.FrontHide();
                }
                break;
            }
        }
        public int GetLength(DressPartType menuSelected)
        {
            switch (menuSelected)
            {
            case DressPartType.FrontBodice:
                return(frontBodice.GetLength());

            case DressPartType.BackBodice:
                return(backBodice.GetLength());

            case DressPartType.FrontSkirt:
                return(frontSkirt.GetLength());

            case DressPartType.BackSkirt:
                return(backSkirt.GetLength());

            case DressPartType.FrontSleeves:
                return(sleeves.GetLength());

            default:
                return(0);
            }
        }
 /// <summary>
 /// Used to get an image for a part to be used as an Icon.
 /// </summary>
 /// <returns>The part icon.</returns>
 /// <param name="partType">Part type.</param>
 /// <param name="index">Index.</param>
 static public ImageSource GetPartIcon(DressPartType partType, int index)
 {
     return(icons[partType][index]);
 }