예제 #1
0
        private void RemoveConnectionEdge(IEdge e, Connection conn)
        {
            this.VisitedGraph.RemoveEdge(e);
            this.EdgeConnections.Remove(e);
            this.ConnectionEdges.Remove(conn);

            Modify m = new Modify();

            m.AddDeleteConnection(conn);
            this.Panel.AbstractShape.History.Do(m);
        }
예제 #2
0
        public void RemoveEdge(IEdge e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }
            if (!this.VisitedGraph.ContainsEdge(e))
            {
                throw new ArgumentException("e is not part of the graph");
            }

            Connection conn = this.EdgeConnections[e];

            this.VisitedGraph.RemoveEdge(e);
            this.EdgeConnections.Remove(e);
            this.ConnectionEdges.Remove(conn);

            Modify m = new Modify();

            m.AddDeleteConnection(conn);
            this.Panel.AbstractShape.History.Do(m);
        }
        private void RemoveConnectionEdge(IEdge e, Connection conn)
        {
            this.VisitedGraph.RemoveEdge(e);
            this.EdgeConnections.Remove(e);
            this.ConnectionEdges.Remove(conn);

            Modify m = new Modify();
            m.AddDeleteConnection(conn);
            this.Panel.AbstractShape.History.Do(m);
        }
        public void RemoveEdge(IEdge e)
        {
            if (e==null)
                throw new ArgumentNullException("e");
            if (!this.VisitedGraph.ContainsEdge(e))
                throw new ArgumentException("e is not part of the graph");

            Connection conn = this.EdgeConnections[e];
            this.VisitedGraph.RemoveEdge(e);
            this.EdgeConnections.Remove(e);
            this.ConnectionEdges.Remove(conn);

            Modify m = new Modify();
            m.AddDeleteConnection(conn);
            this.Panel.AbstractShape.History.Do(m);
        }