예제 #1
0
        /// <override></override>
        protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
        {
            switch (propertyMapping.ShapePropertyId)
            {
            case PropertyIdBodyHeight:
                BodyHeight = propertyMapping.GetInteger();
                break;

            case PropertyIdHeadWidth:
                HeadWidth = propertyMapping.GetInteger();
                break;

            default:
                base.ProcessExecModelPropertyChange(propertyMapping);
                break;
            }
        }
예제 #2
0
        /// <override></override>
        protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
        {
            switch (propertyMapping.ShapePropertyId)
            {
            case PropertyIdDiameter:
                DiameterInternal = propertyMapping.GetInteger();
                break;

            default:
                base.ProcessExecModelPropertyChange(propertyMapping);
                break;
            }
        }
예제 #3
0
        /// <override></override>
        protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
        {
            switch (propertyMapping.ShapePropertyId)
            {
            case PropertyIdAngle:
                Angle = propertyMapping.GetInteger();
                break;

            case PropertyIdFillStyle:
                // assign private stylebecause if the style matches the template's style, it would not be assigned.
                privateFillStyle = (IFillStyle)propertyMapping.GetStyle();
                Invalidate();
                break;

            default:
                base.ProcessExecModelPropertyChange(propertyMapping);
                break;
            }
        }
예제 #4
0
 /// <override></override>
 protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
 {
     switch (propertyMapping.ShapePropertyId) {
         case PropertyIdAngle:
             Angle = propertyMapping.GetInteger();
             break;
         case PropertyIdFillStyle:
             // assign private stylebecause if the style matches the template's style, it would not be assigned.
             privateFillStyle = (IFillStyle)propertyMapping.GetStyle();
             Invalidate();
             break;
         default:
             base.ProcessExecModelPropertyChange(propertyMapping);
             break;
     }
 }
 /// <override></override>
 protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
 {
     switch (propertyMapping.ShapePropertyId) {
             //case PropertyIdImage: break;
         case PropertyIdImageLayout:
             ImageLayout = (ImageLayoutMode)propertyMapping.GetInteger();
             break;
         case PropertyIdImageGrayScale:
             GrayScale = (propertyMapping.GetInteger() != 0);
             break;
         case PropertyIdImageGamma:
             //GammaCorrection = Math.Max(0.00000001f, Math.Abs(propertyMapping.GetFloat()));
             GammaCorrection = propertyMapping.GetFloat();
             break;
         case PropertyIdImageTransparency:
             checked {
                 Transparency = (byte)propertyMapping.GetInteger();
             }
             break;
         case PropertyIdImageTransparentColor:
             TransparentColor = Color.FromArgb(propertyMapping.GetInteger());
             break;
         default:
             base.ProcessExecModelPropertyChange(propertyMapping);
             break;
     }
 }
예제 #6
0
		/// <override></override>
		protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
		{
			switch (propertyMapping.ShapePropertyId) {
				case PropertyIdWidth:
					Width = propertyMapping.GetInteger();
					break;
				case PropertyIdHeight:
					Height = propertyMapping.GetInteger();
					break;
				default:
					base.ProcessExecModelPropertyChange(propertyMapping);
					break;
			}
		}
예제 #7
0
		/// <override></override>
		protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping) {
			switch (propertyMapping.ShapePropertyId) {
				case PropertyIdDiameter:
					DiameterInternal = propertyMapping.GetInteger();
					break;
				default:
					base.ProcessExecModelPropertyChange(propertyMapping);
					break;
			}
		}