Where would you place the SaveSettings method in your project when the user is done editing any settings on the Settings dialog in your program?
Should it be in the return like:
using (frmSettings frmSettings = new frmSettings()) { if (frmSettings.ShowDialog() == DialogResult.OK) { // clicked OK, should I call SaveSettings() here? } else { // clicked cancel. } }
Or where should I place it?
That seems like a good place. =)
EDIT: I suppose it depends on the framework of the application, but there’s nothing wrong with putting it there. It’s a logical (by all definitions of logic) place to put it.