Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, December 30, 2009 12:55:02 PM(UTC)


Groups: Tech Support, Administrators
Posts: 349

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

This simple C# project (built in VS 2008) uses the LEADTOOLS v16.5 .NET libraries to illustrate one implementation of undo and redo operations. There are three simple commands that can be performed, but any RasterCommand could use this implementation. This simplified implementation uses two stacks to hold the commands that have been run, and a list of temporary files that have been created for the undo process. When a command is "undone", the temporary file create is reloaded, and the file is destroyed. When any command is performed, a temporary file is created so the process can be undone.

When the application exits, all of the temporary files are deleted.

For an example in the API, please see the following forum post:
File Attachment(s):
UndoRedoExample.zip (24kb) downloaded 83 time(s).
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, December 28, 2017 10:01:06 AM(UTC)
Duncan Quirk

Groups: Registered, Tech Support, Administrators
Posts: 66

Was thanked: 3 time(s) in 3 post(s)

Attached is an updated version of this demo using VS 2017 and LEADTOOLS v19.

File Attachment(s):
UndoRedo Example.zip (46kb) downloaded 72 time(s).
Duncan Quirk
Developer Support Engineer
LEAD Technologies, Inc.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2018, Yet Another Forum.NET
This page was generated in 0.171 seconds.