示例#1
0
        public DimensionValues GetDimensionValues(string reference)
        {
            foreach (var dimensionValue in this.Dimensions)
            {
                if (dimensionValue.Reference == reference)
                {
                    return(dimensionValue);
                }
            }
            var dimension = new DimensionValues(new List <Values>(), new List <Values>(), new List <Values>(), reference);

            this.Dimensions.Add(dimension);
            return(dimension);
        }
示例#2
0
 public void AddDimensionValues(DimensionValues dimValues)
 {
     Dimensions.Add(dimValues);
 }
示例#3
0
 public void RemoveDimensionValues(DimensionValues dimValues)
 {
     Dimensions.Remove(dimValues);
 }
示例#4
0
 /**
  * Method will verify if the passed dimension values is associated with this product.
  */
 public bool IsAssociatedWithDimensionValues(DimensionValues dimensionValuesToCheck)
 {
     return(this.Dimensions.Contains(dimensionValuesToCheck));
 }