Simple .NET Undo/Redo framework with merging and transactions
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Update .nuspec to netstandard2.0. Apr 9, 2018
.gitattributes Initial commit. Oct 28, 2015
.gitignore Adding NuGet package generation. Oct 28, 2015
ActionsChart.png Add a chart. Oct 28, 2015
Common.props Adding NuGet package generation. Oct 28, 2015
Common.targets Adding NuGet package generation. Oct 28, 2015
LICENSE Initial commit Oct 28, 2015
README.md Update README.md Mar 19, 2017
UndoFramework.sln Some cleanup. Oct 28, 2015

README.md

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