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