Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 3
0
 public ConnectionCreationTool(IDrawingEditor editor, IConnectionFigure fig) : base(editor, fig)
 {
     _connection = fig;
     _connection.DisconnectStart();
     _connection.DisconnectEnd();
 }
		public ConnectionCreationTool (IDrawingEditor editor, IConnectionFigure fig): base (editor, fig) {
			_connection = fig;
			_connection.DisconnectStart ();
			_connection.DisconnectEnd ();
		}