Hi all,
I am just getting started with StrataFrame, so I suspect that I'm just missing something straightforward; if someone can point that out, I'd sure appreciate it.
I have a main form with a ListView and a BusinessObject which controls the data displayed. I placed an Edit button on the form, and hooked that to the EditObject property on the ListView. I then added a ChildFormDialog and set the translation to allow users to edit the values in the ListView. I am using the MessageItems.CopyDataFrom(...) method to get the data into the ListView and then to the ChildForm.
Everything is working well; the ChildForm is in edit mode when opened, and the BO is marked as dirty, as I would expect. I can Save, Undo, and Edit with the toolstrip, and everything works just fine. However, if I close the ChildForm with edits pending, and then click 'No' on the 'Save Changes' dialog, the BO in the main form remains dirty. I had expected that clicking 'No' on the 'Save Changes' dialog would trigger the Undo action, but hooking into the event for that has confirmed that the business object Undo is not being called. When the form closes, even after denying the save, the BO is dirty and still in edit mode.
Am I missng something simple?
Thanks!