Пример #1
0
        public Settings SetDefaultSettings()//do it private
        {
            XMLSettingsWriter writer   = new XMLSettingsWriter(controller);
            Settings          settings = Settings.GetDefaultSettings();

            writer.Write(settings);
            return(settings);
        }
Пример #2
0
        public void ChangeSettings(Settings settings)
        {
            Settings tempSettings = settings;

            if (settings.Feeds.Count == 0 || settings.RefreshInterval >= 18000 || settings.RefreshInterval < 10)
            {
                tempSettings = SetDefaultSettings();
            }
            XMLSettingsWriter writer = new XMLSettingsWriter(controller);

            writer.Write(tempSettings);
        }