private void OnCloneComplete() { IList <IGraphic> lines = CollectionUtils.Select(base.Graphics, delegate(IGraphic test) { return(test is InvariantLinePrimitive); }); _left = lines[0] as InvariantLinePrimitive; _right = lines[1] as InvariantLinePrimitive; Initialize(); }
private void Initialize() { if (_left == null) { base.Graphics.Add(_left = new InvariantLinePrimitive()); _left.InvariantBottomRight = PointF.Empty; } if (_right == null) { base.Graphics.Add(_right = new InvariantLinePrimitive()); _right.InvariantBottomRight = PointF.Empty; } RecomputeArrow(); }