Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NodeCreated Event & UndoManage (Read 1362 times)
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
NodeCreated Event & UndoManage
Dec 4th, 2007 at 5:50am
Print Post  
Hello,

I don't know if this is a bug or it is intended.

I create a node via drag&drop. Then I call the Undo()-method of the UndoManager. The NodeDeleted Event is fired (which is correct I would say).
If I call the Redo()-method, the formerly deleted node appears on the diagram but the is no NodeCreated-Event fired (which I do'nt understand).

Any suggestions?

Best regards,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeCreated Event & UndoManage
Reply #1 - Dec 4th, 2007 at 6:39am
Print Post  
Hi,

Most of the events are raised only in response to users actions. The Deleted event is one of the few exceptions - it is raised every time an item is deleted - never mind whether it is programmatically, interactively, or internally by Flowchart.NET. If you need to detect that an item is added due to undo/redo, you will need to handle the ActionUndone and ActionRedone events and check the type of the action that is passed as an argument to these events.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint