Can anyone give an idea of how should I implement undo/redo of cutting/copying/pasting of files (dirs, subdirs) mapped in a treeview in C#?
It would be great to have some code samples.
Can anyone give an idea of how should I implement undo/redo of cutting/copying/pasting of files (dirs, subdirs) mapped in a treeview in C#?
It would be great to have some code samples.
Consider implementing Command pattern (GoF):
Undo / redo is typically implemented using the so-called "command pattern". Search with Google or read the following article:
For a quick linear undo/redo, you can use Memento pattern using zip of file as memento.