public void Save(LocalApplicationData settings)
        {
            var localApplicationDataFolderPath =
                Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "ConfigPTFE",
                             "ApplicationEnvironmentFileConfigurator");

            if (!Directory.Exists(localApplicationDataFolderPath))
                Directory.CreateDirectory(localApplicationDataFolderPath);

            var pathToSettingsConfig = Path.Combine(localApplicationDataFolderPath, "settings.config");

            var xmlSerializer = new XmlSerializer(settings.GetType());
            using (var fileStream = File.Open(pathToSettingsConfig, FileMode.Create)) {
                xmlSerializer.Serialize(fileStream, settings);
            }
        }
        public LocalApplicationData Get()
        {
            var settings = new LocalApplicationData();
            var localApplicationDataFolderPath =
                Path.Combine(
                    Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
                    "ConfigPTFE", "ApplicationEnvironmentFileConfigurator"
                    );

            var pathToSettingsConfig = Path.Combine(localApplicationDataFolderPath, "settings.config");

            var xmlSerializer = new XmlSerializer(settings.GetType());
            if (File.Exists(pathToSettingsConfig)) {
                using (var fileStream = File.OpenRead(pathToSettingsConfig)) {
                    settings = (LocalApplicationData) xmlSerializer.Deserialize(fileStream);
                }
            }
            else {
                settings = null;
            }

            return settings;
        }