diff --git a/Application/FileConverter/ConversionPreset/ConversionPreset.cs b/Application/FileConverter/ConversionPreset/ConversionPreset.cs index 6f576c7..8e3cd64 100644 --- a/Application/FileConverter/ConversionPreset/ConversionPreset.cs +++ b/Application/FileConverter/ConversionPreset/ConversionPreset.cs @@ -229,6 +229,25 @@ namespace FileConverter } } + public void AddInputType(string inputType) + { + if (this.inputTypes.Contains(inputType)) + { + return; + } + + this.inputTypes.Add(inputType); + this.OnPropertyChanged("InputTypes"); + } + + public void RemoveInputType(string inputType) + { + if (this.inputTypes.Remove(inputType)) + { + this.OnPropertyChanged("InputTypes"); + } + } + public string GenerateOutputFilePath(string inputFilePath) { return (string)this.outputFileNameConverter.Convert(new object[] {inputFilePath, this.OutputType, this.OutputFileNameTemplate}, typeof (string), null, null);