Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic MoifyItemCmd ad Hoc for Undo/Redo (Read 1214 times)
pcone
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Mar 9th, 2007
MoifyItemCmd ad Hoc for Undo/Redo
Jul 4th, 2007 at 8:36am
Print Post  
Hi

I want to build a ModifyItemCmd with an Object who inherits from te Object Box.
When i try to Undo/Redo whit the UndoManager History my Object is inside it but the real Update is closed on the object Box and the property of my object are not updated....
Someone can help me
Thanks!

Cox
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: MoifyItemCmd ad Hoc for Undo/Redo
Reply #1 - Jul 4th, 2007 at 11:19am
Print Post  
Hi,

The SaveProperties and RestoreProperties methods are internal in version 4.3 of the control, so unfortunately you cannot override them unless you modify the source code. We have made them protected in version 5 and you will be able to override them and save/restore your properties. Otherwise you could access the UndoManager.CommandHistory.Commands collection, and replace the last ModifyItemCmd there with your own command that keeps track of the additional properties.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint