I have a form that has several combo box's. What I want to do is, say the user selects a different value for each comb box ie has made 4 changes. I would like to press an undo button, and rollback each change made in sequential order.
So if the undo button is pressed twice only undo the last two changes made. etc.
Is this possible.
I have this
/// <summary>
/// When an Entities contents has been changed through the edit panel it will raise an OnObjectsContentChanged event.
/// A listener for this event was added to each edit panel and will add the entity to the the datamanagers unit of work.
/// </summary>
/// <param name="idg">The edit panel</param>
/// <param name="args">The args which includes the Entity to save</param>
private void EntityContentsChanged(IEditPanel idg, NewRecordArgs args)
{
dm.AddForSave(args.Entity);
args.Entity.Fields.AcceptChanges();
}
But this undo, undo's all the changes made in one go.
Thank you.