コード例 #1
0
        /// <summary>
        /// Saves the application's settings.
        /// </summary>
        private void SaveSettings()
        {
            if (!PreserveApplicationSettings)
            {
                return;
            }

            var path = Path.Combine(GetLocalApplicationSettingsDirectory(), "UltravioletSettings.xml");

            this.settings = UltravioletApplicationSettings.FromCurrentSettings(Ultraviolet);
            UltravioletApplicationSettings.Save(path, settings);
        }
コード例 #2
0
        /// <summary>
        /// Saves the application's settings.
        /// </summary>
        partial void SaveSettings()
        {
            lock (stateSyncObject)
            {
                if (!PreserveApplicationSettings)
                {
                    return;
                }

                var directory = GetLocalApplicationSettingsDirectory();
                var path      = Path.Combine(directory, "UltravioletSettings.xml");

                this.settings = UltravioletApplicationSettings.FromCurrentSettings(Ultraviolet);
                UltravioletApplicationSettings.Save(path, settings);
            }
        }