public override void EndDrag(ConnectClickPoint other) { if (other is ComCanvas o) { if (ConnectedConnector == null && o.ConnectedConnector == null) { ConnectedConnector = o.ConnectedConnector = new ComConnectorCanvas(this, o, globalGUIManager.rootcvs); } } else { globalGUIManager.TipText("端口类型不匹配"); } }
/// <summary> /// 只能被Connector调用!否则会无限递归 /// </summary> public override void DisConnect() { ConnectedConnector = null; }