In addition to Thomas' suggestion have a look at the Stack class
(System.Collections.Stack) it is usefull for holding historical state
you could for example pust a string onto the stack before each change is
applied to it, and if you need to undo just pop the stack until you reach the
historical state you want
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.