mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-21 18:12:31 +01:00
Added: InputPostConversionAction interface.
This commit is contained in:
1 parent
d4cf9d9649
commit
12cfaaefc6
5 files changed
+38
-5
No files matched your search
@@ -20,6 +20,7 @@ namespace FileConverter
|
||||
private string name;
|
||||
private OutputType outputType;
|
||||
private List<string> inputTypes;
|
||||
private InputPostConversionAction inputPostConversionAction;
|
||||
private ConversionSettings settings = new ConversionSettings();
|
||||
private string outputFileNameTemplate;
|
||||
FileNameConverter outputFileNameConverter = new FileNameConverter();
|
||||
@@ -86,6 +87,21 @@ namespace FileConverter
|
||||
}
|
||||
}
|
||||
|
||||
[XmlElement]
|
||||
public InputPostConversionAction InputPostConversionAction
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.inputPostConversionAction;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
this.inputPostConversionAction = value;
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
[XmlElement("Settings")]
|
||||
public ConversionSetting[] XmlSerializableSettings
|
||||
{
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
<Compile Include="ConversionPreset\ConversionSettings.cs" />
|
||||
<Compile Include="EncodingMode.cs" />
|
||||
<Compile Include="ConversionPreset\IConversionSettings.cs" />
|
||||
<Compile Include="InputPostConversionAction.cs" />
|
||||
<Compile Include="PathHelpers.cs" />
|
||||
<Compile Include="Properties\Resources.en.Designer.cs">
|
||||
<DependentUpon>Resources.en.resx</DependentUpon>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// <copyright file="InputPostConversionAction.cs" company="AAllard">License: http://www.gnu.org/licenses/gpl.html GPL version 3.</copyright>
|
||||
|
||||
namespace FileConverter
|
||||
{
|
||||
public enum InputPostConversionAction
|
||||
{
|
||||
None,
|
||||
MoveInArchiveFolder,
|
||||
Delete,
|
||||
}
|
||||
}
|
||||
@@ -211,11 +211,7 @@
|
||||
</TreeView>
|
||||
|
||||
<Label Grid.Row="1" Content="Action when conversion succeed"/>
|
||||
<ComboBox Grid.Row="2">
|
||||
<Label Content="None"/>
|
||||
<Label Content="Move in an archive folder"/>
|
||||
<Label Content="Delete"/>
|
||||
</ComboBox>
|
||||
<ComboBox Grid.Row="2" Name="PostConversionActionComboBox" SelectedItem="{Binding SelectedPreset.InputPostConversionAction, ElementName=window, Mode=TwoWay}" />
|
||||
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@@ -37,6 +37,15 @@ namespace FileConverter
|
||||
};
|
||||
|
||||
this.OutputFormats.ItemsSource = outputTypes;
|
||||
|
||||
InputPostConversionAction[] postConversionActions = new[]
|
||||
{
|
||||
InputPostConversionAction.None,
|
||||
InputPostConversionAction.MoveInArchiveFolder,
|
||||
InputPostConversionAction.Delete,
|
||||
};
|
||||
|
||||
this.PostConversionActionComboBox.ItemsSource = postConversionActions;
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
Reference in new issue
Block a user