diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/Main/PointToPointConverter.cs | 19 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/ResourceConverterBase.cs | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Main/PointToPointConverter.cs b/win/CS/HandBrakeWPF/Converters/Main/PointToPointConverter.cs new file mode 100644 index 000000000..f63b4b34c --- /dev/null +++ b/win/CS/HandBrakeWPF/Converters/Main/PointToPointConverter.cs @@ -0,0 +1,19 @@ +// -------------------------------------------------------------------------------------------------------------------- +// <copyright file="PointToPointConverter.cs" company="HandBrake Project (http://handbrake.fr)"> +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// </copyright> +// <summary> +// PointToPoint Converter +// </summary> +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrakeWPF.Converters.Main +{ + using System.Windows.Data; + + using HandBrakeWPF.Services.Encode.Model.Models; + + public class PointToPointConverter : ResourceConverterBase<PointToPointMode>, IValueConverter + { + } +} diff --git a/win/CS/HandBrakeWPF/Converters/ResourceConverterBase.cs b/win/CS/HandBrakeWPF/Converters/ResourceConverterBase.cs index 36a588f59..7f1a1b433 100644 --- a/win/CS/HandBrakeWPF/Converters/ResourceConverterBase.cs +++ b/win/CS/HandBrakeWPF/Converters/ResourceConverterBase.cs @@ -46,7 +46,7 @@ namespace HandBrakeWPF.Converters { return new BindingList<string>( - EnumHelper<T>.GetEnumDisplayValues(typeof(T)).ToList()); + EnumHelper<T>.GetEnumDisplayValuesSubset((BindingList<T>)value).ToList()); } if (value != null && value.GetType() == typeof(T)) |