Im writing an application that edits a large amount of data structures. I have a problem with how to design the saving functionality.
Whenever the user changes a value, I want the program to recognize this, and ask the user if they want to save when they try to exit without saving.
The only way I can think to do it right now would be to have a boolean valueChanged which initializes to false, and is set to false whenever the user saves. Then have it set to true whenever an change has been made. Problem is, this would take quite a bit of work to integrate it with all the controls.
Is there a better way to do this?
C# design problem
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Daniel58 pointsPosted Nov 6, 2007, 10:31 AM EST
I am in need of the same design solution. I have a windows form with a tab control. Each tab has lots of controls (textboxes and checkboxes) and I would like to be able to detect changes so I can just save those changes to my database.
Please let me know if you come up with anything or get any help. I need it bad!
Daniel
Paul Asd5 pointsPosted Nov 6, 2007, 11:00 AM EST
There has to be a better way.
Paul Asd5 pointsPosted Nov 8, 2007, 6:43 PM EST