All Projects → KirillOsenkov → Undo

KirillOsenkov / Undo

Licence: MIT license
Simple .NET Undo/Redo framework with merging and transactions

Programming Languages

C#
18002 projects

Undo

This is a very simple framework to add Undo/Redo functionality to your .NET applications. Supports unlimited undo-redo, nested transactions and action merging (to merge a series of consecutive and/or nested actions into one).

NuGet:

http://nuget.org/packages/guilabs.undo

Sample:

var actionManager = new ActionManager();
var action1 = new CallMethodAction(
  () => sb.Append("execute1 "),
  () => sb.Append("unexecute1 "));
var action2 = new CallMethodAction(
  () => sb.Append("execute2 "),
  () => sb.Append("unexecute2 "));

actionManager.Execute(action1);
actionManager.Execute(action2);
actionManager.Undo();
actionManager.Redo();

Undo actions

Blog posts:

Originally hosted at http://undo.codeplex.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].