public override void InvokeEnd(MouseEvent ev) { if (m_handle != null) { m_handle.InvokeEnd(ev); } if (m_connection.EndConnector == null) { m_connection.DisconnectStart(); m_connection.DisconnectEnd(); ev.View.Drawing.Remove(m_connection); ev.View.ClearSelection(); } }
public override void InvokeEnd(double x, double y, IDrawingView view) { if (m_handle != null) { m_handle.InvokeEnd(x, y, view); } if (m_connection.EndConnector == null) { m_connection.DisconnectStart(); m_connection.DisconnectEnd(); view.Drawing.Remove(m_connection); view.ClearSelection(); } }