示例#1
0
 private int CheckCategoryEnabledInSave(DeliveryCategories cat, List <string> match)
 {
     foreach (string item in match)
     {
         string[] items = item.Split(':');
         if (items[0] == cat.ToString())
         {
             //Quality level 3 (==8) is unused
             return(items.Length > 1 ? Int32.Parse(items[1]) : (16 + 4 + 2 + 1));
         }
     }
     return(0);
 }
示例#2
0
 public static string Name(this DeliveryCategories category)
 {
     return(category.ToString().Replace("_", " "));
 }