In a VB.NET 2005 - WINDOWS application:
I have an application with about 50 forms that needs to be refractored in a way that the user does not have to press the "Save" button every time he makes a change... instead, the form on the close event should know that the form is "Dirty" and commit the changes.
There is no binding to a dataset (as it should) otherwise will be easy to do the trick.
I do not want to update the records firing the click-event of the the save button if there are no changes because it makes difficult to track who made actual changes on the database and will create un-necessary network traffic.
How can I accomplish this?
I'm thinking of adding an event handler for each of the fields for the event changed and modify a flag "Dirty"
is this the way to do it?
Any ideas are welcome,