Inheritance: Primitive
Exemplo n.º 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();
 }
Exemplo n.º 2
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();
		}