I close the panel, reopen it and test anchor is null, so it recreates the anchor
private AnchorPattern testAnchor if (testanchor == null) { testanchor = new AnchorPattern(new AnchorPoint[]{ new AnchorPoint(50, 0, true, false, MarkStyle.Circle, Color.red), new AnchorPoint(50, 100, true, false, MarkStyle.Circle, Color.red), new AnchorPoint(0, 50, true, false, MarkStyle.Circle, Color.red), new AnchorPoint(100, 10, false, true, MarkStyle.Circle, Color.red), new AnchorPoint(100, 20, false, true, MarkStyle.Circle, Color.red), new AnchorPoint(100, 30, false, true, MarkStyle.Circle, Color.red), new AnchorPoint(100, 40, false, true, MarkStyle.Circle, Color.red), new AnchorPoint(100, 50, false, true, MarkStyle.Circle, Color.red), new AnchorPoint(100, 60, false, true, MarkStyle.Circle, Color.red)}, "test name"); }
Do I have to use the exact method you wrote about or should this work?
Thanks
|