private string GetLotAttribute(IAttributeNameKey attribute)
        {
            if (LotAttributes != null)
            {
                var key  = attribute.ToAttributeNameKey();
                var attr = LotAttributes.FirstOrDefault(a => key.Equals(a));
                if (attr != null)
                {
                    return(attr.AttributeValue.ToString("0.####"));
                }
            }

            return("n/a");
        }
Exemplo n.º 2
0
        private double?GetAttributeValue(string key)
        {
            double value;

            return(LotAttributes.TryGetValue(key, out value) ? value : (double?)null);
        }