Пример #1
0
        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();
            }
        }
Пример #2
0
        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();
            }
        }