Add add/remove input type functions.

This commit is contained in:
Tichau committed 2015-11-06 18:19:54 +01:00
1 parent 7b0af841ab
commit 8dbf692855
1 file changed
+19
@@ -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);