示例#1
0
        public void Undo()
        {
            graph.Disconnect(connection);

            // 还原
            foreach (var connection in replacedConnections)
            {
                graph.Connect(connection);
            }
        }
示例#2
0
        public void Undo()
        {
            graph.Disconnect(connection);
            connection.Redirect(oldFrom, oldFromPortName, oldTo, oldToPortName);
            graph.Connect(connection);

            // 还原
            foreach (var connection in replacedConnections)
            {
                graph.Connect(connection);
            }
        }
示例#3
0
 public void Do()
 {
     graph.Disconnect(connection);
 }