I have a problem.
I have an instance of a class that has been passed to my form. What happens is, i create a copy of the class and the changes the user makes is applied to the copy. If the user cancels, i just abandon the copied class, but if they want to save, then i want to overwrite the class that was passed to my form with the copied version. So that the class instance on the calling screen is updated with the new (copied) class.
How can i do it?
I have an instance of a class that has been passed to my form. What happens is, i create a copy of the class and the changes the user makes is applied to the copy. If the user cancels, i just abandon the copied class, but if they want to save, then i want to overwrite the class that was passed to my form with the copied version. So that the class instance on the calling screen is updated with the new (copied) class.
How can i do it?