Creating Undo/Redo functionallity?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
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

hth

guy
 
Hi Lars

Further to the answers, you could have a look at the Command pattern, which
can be used to support undo/redo operations.

HTH

Charles
 

Ask a Question

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.

Ask a Question

Back
Top