mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-20 01:22:16 +01:00
Add add/remove input type functions.
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user