c# - Commit Application Settings Changes -
i'm binding user settings bunch of controls on winform dialog has ok/cancel buttons. while works great read in bindings in, commit binding changes if user clicks ok, , not if click cancel. there simplistic setting achieve rather managing reading , committing myself?
right now, let's have textbox binds user setting called "country". has "united states" in , if user changes "bolivia", committed typed instead of when ok button pressed.
to save settings, add in ok button event handler:
properties.settings.default.save();
to reload settings:
properties.settings.default.reload();
good luck!
Comments
Post a Comment