コード例 #1
0
        // Save the settings to the current provider (See above comment).
        public static void SaveSettings(StringDictionary settings)
        {
            //LoadProviders();
            //_provider.SaveSettings(settings);

            //This is used for Winforms application to access the settings
            Thon.ZaszBlog.Support.XmlProvider.XmlStorageProvider inst = new Thon.ZaszBlog.Support.XmlProvider.XmlStorageProvider();
            inst.SaveSettings(settings);
        }
コード例 #2
0
        // Loads the settings from the provider(XML provider which uses the
        // BlogSettings.Instance.StorageLocation/settings.xml as persistance data store )
        // and returns them in a StringDictionary for the BlogSettings class to use.
        public static StringDictionary LoadSettings()
        {
            //LoadProviders();
            //return _provider.LoadSettings();

            //This is used for Winforms application to access the settings
            Thon.ZaszBlog.Support.XmlProvider.XmlStorageProvider inst = new Thon.ZaszBlog.Support.XmlProvider.XmlStorageProvider();
            return inst.LoadSettings();
        }