aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/Converters
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-27 17:34:54 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-27 17:34:54 +0200
commit00de504d4d276063ec6b732cc95e476c89182df2 (patch)
tree49bd12dc86ae6c05286b135fe6d4ed0990323144 /Software/Visual_Studio/Tango.SharedUI/Converters
parent50bfdf5d76ddd3796c6c54153e9af4244119a548 (diff)
downloadTango-00de504d4d276063ec6b732cc95e476c89182df2.tar.gz
Tango-00de504d4d276063ec6b732cc95e476c89182df2.zip
Worked on PPC publisher.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/Converters')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs b/Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs
index 38f3467cf..68e7a6c93 100644
--- a/Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs
+++ b/Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs
@@ -13,7 +13,15 @@ namespace Tango.SharedUI.Converters
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Type result = value as Type;
- return Enum.GetValues(result).Cast<object>().Select(e => new { Value = e, DisplayName = (e as Enum).ToDescription() });
+
+ if (parameter != null && parameter.ToString() == "false")
+ {
+ return Enum.GetValues(result);
+ }
+ else
+ {
+ return Enum.GetValues(result).Cast<object>().Select(e => new { Value = e, DisplayName = (e as Enum).ToDescription() });
+ }
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)