summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-06-02 22:03:16 +0100
committersr55 <[email protected]>2017-06-02 22:03:16 +0100
commit27f366140509b18897f0dc54194a1a0d55cf0bb6 (patch)
tree62fc39ba1edd10fc4d5914177760df318eb4a25c /win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
parent844a0bf724abc56edcad0390d82bf92eae219144 (diff)
WinGui: Support for the new sharpen filter.
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs')
-rw-r--r--win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
index 91c30311a..c9afb8c14 100644
--- a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
@@ -91,6 +91,10 @@ namespace HandBrakeWPF.Converters
{
return EnumHelper<CombDetect>.GetEnumDisplayValues(typeof(CombDetect));
}
+ if (value is IEnumerable<Sharpen>)
+ {
+ return EnumHelper<Sharpen>.GetEnumDisplayValues(typeof(Sharpen));
+ }
// Single Items
if (targetType == typeof(VideoEncoder) || value.GetType() == typeof(VideoEncoder))
@@ -140,6 +144,10 @@ namespace HandBrakeWPF.Converters
{
return EnumHelper<CombDetect>.GetDisplay((CombDetect)value);
}
+ if (targetType == typeof(Sharpen) || value.GetType() == typeof(Sharpen))
+ {
+ return EnumHelper<Sharpen>.GetDisplay((Sharpen)value);
+ }
return null;
}
@@ -210,6 +218,11 @@ namespace HandBrakeWPF.Converters
{
return EnumHelper<CombDetect>.GetValue(value.ToString());
}
+
+ if (targetType == typeof(Sharpen) || value.GetType() == typeof(Sharpen))
+ {
+ return EnumHelper<Sharpen>.GetValue(value.ToString());
+ }
return null;
}
}