How to implement good and efficient undo/redo functionality for a TextBox
The .NET System.ComponentModel namespace comes with an IEditableObject interface, you could also use INotifyPropertyChanging and INotifyPropertyChanged. MVC Pattern would also make it that your interface responds to changes in the model through events thus updating or restoring the value of your textbox. Effectively the Memento Pattern. Have you had a look into these? Here is … Read more