Inheritance: Primitive
Beispiel #1
0
 public override void AttachTo(Primitive primitive)
 {
     if (primitive == null)
     {
         attachedLine = null;
     }
     else
     {
         attachedLine       = primitive as FreeLine;
         numControl.Value   = attachedLine.penSize;
         colorControl.Color = attachedLine.penColor;
         lineDD.SelectItem(attachedLine.penStyle);
     }
     Invalidate();
 }
		public override void AttachTo(Primitive primitive)
		{
			if (primitive == null)
			{
				attachedLine = null;
			}
			else
			{
				attachedLine = primitive as FreeLine;
				numControl.Value = attachedLine.penSize;
				colorControl.Color = attachedLine.penColor;
				lineDD.SelectItem(attachedLine.penStyle);
			}
			Invalidate();
		}