public void RemovePreset(PresetInfo presetInfo)
        {
            Presets.Remove(presetInfo);
            var path = _presetPaths[presetInfo];

            File.Delete(path);
            _presetPaths.Remove(presetInfo);
        }
        public void AddPreset(PresetInfo presetInfo)
        {
            var path =
                FileExtensions.MakeUnique(Path.Combine(_folderPath,
                                                       StringExtensions.RemoveSpecialCharacters(presetInfo.Name.Replace(" ", "")) + ".xml"));

            Directory.CreateDirectory(_folderPath);
            var xmlSerializer = new XmlSerializer(typeof(PresetInfo), GetNeededTypes());

            using (var streamWriter = new StreamWriter(path))
                xmlSerializer.Serialize(streamWriter, presetInfo);

            Presets.Add(presetInfo);
            _presetPaths.Add(presetInfo, path);
        }