pondyond / Undo

Simple .NET Undo/Redo framework with merging and transactions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple .NET Undo/Redo framework with merging and transactions

License:MIT License


Languages

Language:C# 100.0%