private void ClearEdgeBp() { if (this.edgeBp == null) { return; } this.graphArea.RemoveCustomChildControl(this.edgeBp.EdgePath); this.edgeBp.Dispose(); this.edgeBp = null; }
public void CreateVirtualEdge(VertexControl source, Point targetPos) { this.zoomControl.MouseMove += this.ZoomControl_MouseMove; this.edgeBp = new EdgeBlueprint(source, targetPos, (LinearGradientBrush)this.rd["EdgeBrush"]); this.graphArea.InsertCustomChildControl(0, this.edgeBp.EdgePath); }