C#: Where do you call your own save method after pressing OK on a Settings Dialog for your program?
<p>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?</p>

<p>Should it be in the return like:</p>

<pre><code>        using (frmSettings frmSettings = new frmSettings())
        {
            if (frmSettings.ShowDialog() == DialogResult.OK)
            {
                // clicked OK, should I call SaveSettings() here? 

            }
            else
            {
                // clicked cancel.
            }
        }
</code></pre>

<p>Or where should I place it?</p>
