I'm trying to reset data in my object bound to a simple form (some textboxes and a couple of buttons).
I have 2 objects that were created separately, but have the same information. Object 1 is bound to a form using DataBinding. Object 2 is there to be able to reset Object 1 to original values. Whenever user edits data everything is fine, and Object 1 is updated with new values, while Object 2 stays the same. I'm having a problem with a scenario when user edits some data, and then clicks Reset Button which calls code that looks like this:
Object1 = Object2
Values get reset, but now when user edits data again, both Object1 and Object2 values are updated. And I can't reset anymore.
How can I reset Object1 values without making Object2 update-able at the same time? And can someone explain why Object2 becomes update-able after resetting?
Thank you.