Пример #1
0
        private static string SizeMap(BulSize value)
        {
            switch (value)
            {
            case BulSize.Small:
                return("small");

            case BulSize.Normal:
                return("normal");

            case BulSize.Medium:
                return("medium");

            case BulSize.Large:
                return("large");

            default:
                return("normal");
            }
        }
Пример #2
0
        /// <summary>
        /// Uses the position in the ribbon to find this items size
        /// </summary>
        private BulSize GetSize()
        {
            BulSize size       = BulSize.Large;
            int     fromCenter = DistanceFromCenter();

            if (fromCenter == 1)
            {
                size = BulSize.Medium;
            }

            if (fromCenter == 2)
            {
                size = BulSize.Normal;
            }

            if (fromCenter > 2)
            {
                size = BulSize.Small;
            }

            return(size);
        }
Пример #3
0
 public static string ChildSize(BulSize value)
 {
     return("are-" + SizeMap(value));
 }
Пример #4
0
 public static string Size(BulSize value)
 {
     return("is-" + SizeMap(value));
 }