Пример #1
0
        public void ResetSettings()
        {
            if (Options != null)
            {
                Options.Clear();
                Options.AcceptChanges();

                foreach (var key in OptionNames)
                {
                    Options.SetValue(key, Options.DefaultValue.GetValue(key));
                }

                SuspendChanges();
                PutSettings();
                ResumeChanges();
            }
        }