B
BobRoyAce
Let's say that I have a class called Customer and a class called
CustomerAddress.
Now, further suppose that the Customer class has a property called
_CustomerAddresses, which is List(Of CustomerAddress).
Now, there's a form to edit a Customer, on which the user can click on
a SAVE button to save changes, or on a CANCEL button to cancel any
changes that they have made. In addition, on the Customer form, the
user can make changes to the different CustomerAddress's that belong
to the Customer (i.e. add, edit, remove). A separate form is used for
adding or editing a CustomerAddress. For example, the user could
select a CustomerAddress, in a grid, and then click on an EDIT button,
at which point the Customer Address form is shown modally. On the
Customer Address form, the user can also click on SAVE or CANCEL.
Now, here's where the question comes in. The way that I am
implementing this is that, if the user clicks on CANCEL for the
Customer, any adds, edits, or deletes of CustomerAddress records
associated with that Customer are disregarded/discarded.
Is this the "usual" way to implement functionality like this?
CustomerAddress.
Now, further suppose that the Customer class has a property called
_CustomerAddresses, which is List(Of CustomerAddress).
Now, there's a form to edit a Customer, on which the user can click on
a SAVE button to save changes, or on a CANCEL button to cancel any
changes that they have made. In addition, on the Customer form, the
user can make changes to the different CustomerAddress's that belong
to the Customer (i.e. add, edit, remove). A separate form is used for
adding or editing a CustomerAddress. For example, the user could
select a CustomerAddress, in a grid, and then click on an EDIT button,
at which point the Customer Address form is shown modally. On the
Customer Address form, the user can also click on SAVE or CANCEL.
Now, here's where the question comes in. The way that I am
implementing this is that, if the user clicks on CANCEL for the
Customer, any adds, edits, or deletes of CustomerAddress records
associated with that Customer are disregarded/discarded.
Is this the "usual" way to implement functionality like this?