public override void AttachTo(Primitive primitive)
 {
     if (primitive == null)
     {
         _attachedBox = null;
     }
     else
     {
         _attachedBox = primitive as DecoratedTextBox;
         _attachedBox.tpText.SelectionChanged += tpText_SelectionChanged;
     }
     FillControl(true);
     Invalidate();
 }
		public override void AttachTo(Primitive primitive)
		{
			if (primitive == null)
			{
				attachedBox = null;
			}
			else
			{
				attachedBox = primitive as DecoratedTextBox;
				numControl.Value = attachedBox.borderSize;
				colorBorderControl.Color = attachedBox.borderColor;
				colorBackControl.Color = attachedBox.backColor;
			}
			Invalidate();
		}
 public override void AttachTo(Primitive primitive)
 {
     if (primitive == null)
     {
         attachedBox = null;
     }
     else
     {
         attachedBox              = primitive as DecoratedTextBox;
         numControl.Value         = attachedBox.borderSize;
         colorBorderControl.Color = attachedBox.borderColor;
         colorBackControl.Color   = attachedBox.backColor;
     }
     Invalidate();
 }
		public override void AttachTo(Primitive primitive)
		{
			if (primitive == null)
			{
				_attachedBox = null;
			}
			else
			{
				_attachedBox = primitive as DecoratedTextBox;
				_attachedBox.tpText.SelectionChanged += tpText_SelectionChanged;
			}
			FillControl(true);
			Invalidate();
		}