Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Undo/redo (Read 3483 times)
fractal07
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Location: France
Joined: Mar 13th, 2017
Undo/redo
Jul 25th, 2017 at 1:49pm
Print Post  
Hello,
I'm still working hard on an application using Scheduling (WinForms/C#/VS2015) and I sincerely congratulate you, good job! Components are great and bugless!
May be you could help me... I store all my appointments in database, I manage many events to update DB (ItemClick, ItemModified,...) but I do not find how to catch the undo/redo.
To be clear: undo/redo is easy to use with calendar.Schedule.Undo() but I need to add database updates !
By the way, I have the same issue when I remove an appointment using DELETE key ; I obviously catch the key but I do not succeed in managing the remove behaviour...
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Undo/redo
Reply #1 - Jul 26th, 2017 at 7:05am
Print Post  
Hi,

You can handle the ActionUndone and ActionRedone events of the Schedule class to get notified when an action is undone or redone respectively. To get notified when an item is deleted, use the Calendar.ItemDeleted event.

Regards,
Meppy
  
Back to top
 
IP Logged
 
fractal07
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Location: France
Joined: Mar 13th, 2017
Re: Undo/redo
Reply #2 - Jul 26th, 2017 at 10:14am
Print Post  
Thank you meppy for your perfect quick reply!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint