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

Notification

Icon
Error

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

Walter  
Walter

Groups: Tech Support
Posts: 366

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:
http://support.leadtools.com/SupportPortal/CS/forums/18720/ShowPost.aspx
File Attachment(s):
UndoRedoExample.zip (24kb) downloaded 280 time(s).
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

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 9:56:06 AM(UTC)
Duncan Quirk

Groups: Registered, Tech Support, Administrators
Posts: 70

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

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

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

LEAD Logo
 
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-2024, Yet Another Forum.NET
This page was generated in 0.056 seconds.