My application is a MDI Winform application. I encounter some problems connected with MVP pattern and Data Bindings.
All my forms are modeless. When I modify a field, or change the selected item in a combobox, I want to modify the model and I want all the form (s) to synchronize immediately with the model. Databinding allow this perfectly for simple fields ,and for complex operations , I use the Presenter to update view "manually" .
But, How to put Undo/redo mechanisms in the picture ? I mean: I want to revert change I made in a text field by clicking an "undo" button.
I try to apply command pattern, but it seems there is no place to introduce a "command" mechanism in the databinding mechanism. I'm so stuck with this , that I now take under consideration to abandon Binding mechanisms completely.
I see so many articles about Binding, but no solution to undo/redo is really exposed.
Are undo/redo and databinding really uncompatible?