ACAT.Extensions.Default.UI.Dialogs.MouseGridSettingsForm.saveSettingsAndQuit C# (CSharp) Method

saveSettingsAndQuit() private method

Saves settings and close the dialog. Confirms with the user first
private saveSettingsAndQuit ( ) : void
return void
        private void saveSettingsAndQuit()
        {
            if (_isDirty && DialogUtils.Confirm(this, Resources.SaveSettings))
            {
                getSettingsFromUI().Save();

                _isDirty = false;
                Common.AppPreferences.NotifyPreferencesChanged();
            }

            Windows.CloseForm(this);
        }