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"); } }
/// <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); }
public static string ChildSize(BulSize value) { return("are-" + SizeMap(value)); }
public static string Size(BulSize value) { return("is-" + SizeMap(value)); }