PC Review


Reply
Thread Tools Rate Thread

Creating Undo/Redo functionallity?

 
 
Lars Netzel
Guest
Posts: n/a
 
      25th Oct 2004
Hi!

Is this hard and where do you start?

/Lars


 
Reply With Quote
 
 
 
 
thomas wenning
Guest
Posts: n/a
 
      25th Oct 2004

"Lars Netzel" <[stop_spam]@host.topdomain> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Hi!
>
> Is this hard and where do you start?
>
> /Lars
>
>

Hi Lars,

serialization is the answer:
http://www.knowdotnet.com/articles/e...alization.html
http://www.codeproject.com/cs/miscctrl/savelistview.asp
http://www.codeproject.com/cs/miscctrl/loadandsave.asp

Greeting

Thomas


 
Reply With Quote
 
=?Utf-8?B?Z3V5?=
Guest
Posts: n/a
 
      25th Oct 2004
In addition to Thomas' suggestion have a look at the Stack class
(System.Collections.Stack) it is usefull for holding historical state

you could for example pust a string onto the stack before each change is
applied to it, and if you need to undo just pop the stack until you reach the
historical state you want

hth

guy

"Lars Netzel" wrote:

> Hi!
>
> Is this hard and where do you start?
>
> /Lars
>
>
>

 
Reply With Quote
 
Charles Law
Guest
Posts: n/a
 
      25th Oct 2004
Hi Lars

Further to the answers, you could have a look at the Command pattern, which
can be used to support undo/redo operations.

HTH

Charles


"Lars Netzel" <[stop_spam]@host.topdomain> wrote in message
news:(E-Mail Removed)...
> Hi!
>
> Is this hard and where do you start?
>
> /Lars
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: undo redo Cor Ligthert[MVP] Microsoft VB .NET 0 17th Mar 2010 08:51 AM
Re: redo and undo JoAnn Paules [MVP] Microsoft Word Document Management 0 12th Jan 2007 12:19 AM
? Redo command (undo undo) Alec S. Windows XP Basics 2 8th Apr 2004 01:13 AM
? Redo command (undo undo) Alec S. Windows XP Help 0 7th Apr 2004 06:17 AM
? Redo command (undo undo) Alec S. Windows XP General 0 7th Apr 2004 06:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:47 PM.