public override void InvalidateObject(IDrawObj sender) { const int width = 3; Rectangle rect = Rectangle.Round(GetScrollAndScaleRect(sender.Bound)); rect.Inflate(width, width); Container.Invalidate(rect); if (_controlPoint.NeedInvalidate && _controlPoint.Contains(sender)) { _controlPoint.Invalidate(); } }
private void Invalidate(bool needInvalidate = false) { _controlPoint.NeedInvalidate = needInvalidate; _controlPoint.Invalidate(); }