Esempio n. 1
0
        public static double GetTagOrder(this TagRuleEngine tagEngine, string tag)
        {
            var value = tagEngine.GetPropertyValue(tag, "order")?.Trim();

            if (string.IsNullOrEmpty(value) || !double.TryParse(value, out var order) || double.IsNaN(order))
            {
                return(100);
            }

            return(order);
        }
Esempio n. 2
0
 public static Color?GetTagColor(this TagRuleEngine tagEngine, string tag) =>
 ColorService.ParseColor(tagEngine.GetPropertyValue(tag, "color"));