예제 #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));
 }