Yet another N-level undo question

Yet another N-level undo question

Old forum URL: forums.lhotka.net/forums/t/4590.aspx


Michael posted on Monday, March 31, 2008

I have trawled previous posts, but haven't found what I'm looking for. In the Project Tracker, if I edit the Name field and then edit the Description field, then click Cancel to undo one step, I would have expected only the Description edit to be rolled back. Instead, all changes since the last save are undone. No matter how many fields are changed, the EditLevel never goes past 2. How do you get the binding source to call BeginEdit() each time PropertyHasChanged() fires?

RockfordLhotka replied on Monday, March 31, 2008

This is the way n-level undo is designed to work. Read through Chapter 3 to see how it works behind the scenes.

Michael replied on Monday, March 31, 2008

Thanks Rocky, I did read through it about a year ago, I'll have to go back for a refresher.

Copyright (c) Marimer LLC