コード例 #1
0
        public IScaleDescriptorAssignment AddDynamicScaleForProperty(string name)
        {
            var scaleAssignment = this.Scales.ForProperty(name);

            if (null == scaleAssignment)
            {
                var scale = new DynamicPropertyScaleDescriptor(this, name);
                scaleAssignment = new ScaleDescriptorAssignment {
                    PropertyName = name, Scale = scale
                };
                Scales.Add(scaleAssignment);
            }
            return(scaleAssignment);
        }
コード例 #2
0
 public IScaleDescriptorAssignment AddDynamicScaleForProperty(string name)
 {
     var scaleAssignment = this.Scales.ForProperty(name);
     if (null == scaleAssignment)
     {
         var scale = new DynamicPropertyScaleDescriptor(this, name);
         scaleAssignment = new ScaleDescriptorAssignment {PropertyName = name, Scale = scale};
         Scales.Add(scaleAssignment);
     }
     return scaleAssignment;
 }