Наследование: Primitive
Пример #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();
 }
Пример #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();
		}