T
Tomas
Hi,
I am a VB.NET newbie that would like to know the best practise when
working with objects and undo user changes to objects properties.
Problem
The system allows the user to change properties of an object; the
system then does some time consuming calculation and provide a solution
to the user. If the user found the solution unsatisfactory, he/she
could either continue making more changes or undo all changes done
since the previous calculation.
Idea
We were thinking of working with two objects, a shadow object that the
user can go back to and the object that is involved in the calculation.
Now and then in code copy the object with its properties to the shadow
object.
Is this sensible way, does VB.NET have anything to facilitate this, are
there any good alternatives?
I appreciate any comments regarding this dilemma,
Tomas Nordlander
I am a VB.NET newbie that would like to know the best practise when
working with objects and undo user changes to objects properties.
Problem
The system allows the user to change properties of an object; the
system then does some time consuming calculation and provide a solution
to the user. If the user found the solution unsatisfactory, he/she
could either continue making more changes or undo all changes done
since the previous calculation.
Idea
We were thinking of working with two objects, a shadow object that the
user can go back to and the object that is involved in the calculation.
Now and then in code copy the object with its properties to the shadow
object.
Is this sensible way, does VB.NET have anything to facilitate this, are
there any good alternatives?
I appreciate any comments regarding this dilemma,
Tomas Nordlander