Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic undo can‘t complete once (Read 721 times)
CW
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Feb 16th, 2023
undo can‘t complete once
Mar 15th, 2023 at 11:16am
Print Post  
i use dragdrop to put my node to diagram view. when i use undo
like:
Code
Select All
        private void undo_Click(object sender, EventArgs e)
        {
#if !STANDARD
            diagram.UndoManager.Undo();
#endif // !STANDARD
        } 



then i need to click three times. why it can't complete once?
  

e__d__e__z___20230315191624.png ( 67 KB | 32 Downloads )
e__d__e__z___20230315191624.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: undo can‘t complete once
Reply #1 - Mar 15th, 2023 at 4:26pm
Print Post  
If creating the node from a custom drag-and-drop handler, try using composite commands -
https://www.mindfusion.eu/onlinehelp/flowchartnet/Composite_Commands.htm

If modifying the node from NodeCreated event raised after dragging from NodeListView, try calling MergeUndoRecords -
https://www.mindfusion.eu/onlinehelp/flowchartnet/M_MindFusion_Diagramming_Comma...

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint