Click here to Skip to main content
13,666,418 members
Click here to Skip to main content
Articles » Languages » C# » General » Downloads


476 bookmarked
Posted 10 Jul 2007
Licenced CPOL

Automated Undo/Redo library based on C# Generics in .NET framework

, 21 Mar 2012
A reusable library that can equip any action in your application with the undo/redo feature.
// Siarhei Arkhipenka (c) 2006-2007. email:
using System;
using System.Collections.Generic;
using System.Text;
using UndoRedoFramework;
using UndoRedoFramework.Collections.Generic;
using System.Drawing;

namespace UndoRedoDemo
	class CitiesList : UndoRedoList<City>
		public static CitiesList Load()
			using (UndoRedoManager.Start("Init"))
				CitiesList cities = new CitiesList();
				cities.Add(new City("New York", 5, 5, 50, 30, Color.RoyalBlue));
				cities.Add(new City("Berlin", 5, 40, 80, 30, Color.Coral));
				cities.Add(new City("Moscow", 5, 75, 60, 30, Color.LimeGreen));
				cities.Add(new City("Rio", 5, 110, 40, 30, Color.Violet));
				return cities;
		public static void Save()
			throw new NotImplementedException();

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Sergey Arhipenko
Software Developer (Senior)
Australia Australia
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.180810.1 | Last Updated 21 Mar 2012
Article Copyright 2007 by Sergey Arhipenko
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid