/// <summary>
        /// Loads the application's settings.
        /// </summary>
        private void LoadSettings()
        {
            lock (stateSyncObject)
            {
                if (!PreserveApplicationSettings)
                {
                    return;
                }

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

                try
                {
                    var settings = UltravioletActivitySettings.Load(path);
                    if (settings == null)
                    {
                        return;
                    }

                    this.settings = settings;
                }
                catch (FileNotFoundException) { }
                catch (DirectoryNotFoundException) { }
                catch (XmlException) { }
            }
        }
        /// <summary>
        /// Loads the application's settings.
        /// </summary>
        private void LoadSettings()
        {
            if (!PreserveApplicationSettings)
            {
                return;
            }

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

            if (!File.Exists(path))
            {
                return;
            }

            this.settings = UltravioletActivitySettings.Load(path);
        }