diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-11-20 18:11:28 +0200 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-11-20 18:11:28 +0200 |
| commit | a000661c3b2ffb3b0603548386cded1cf3488df6 (patch) | |
| tree | 5e064cda37fdd22662ecdb54b3084fd7f12b48c5 /Software/Visual_Studio/FSE/Tango.FSE.Common | |
| parent | 4cd4807ca5a7490c8d7edac496a19d618bf9197e (diff) | |
| download | Tango-a000661c3b2ffb3b0603548386cded1cf3488df6.tar.gz Tango-a000661c3b2ffb3b0603548386cded1cf3488df6.zip | |
Stats DeltaE + VFT Export additions.
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.Common')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.Common/Converters/DisplayMemberPathToStringConverter.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Converters/DisplayMemberPathToStringConverter.cs b/Software/Visual_Studio/FSE/Tango.FSE.Common/Converters/DisplayMemberPathToStringConverter.cs index 99806afc4..65714916a 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.Common/Converters/DisplayMemberPathToStringConverter.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Converters/DisplayMemberPathToStringConverter.cs @@ -18,6 +18,15 @@ namespace Tango.FSE.Common.Converters { if (values[0] != null && values[1].ToStringSafe() != null && values[1] != DependencyProperty.UnsetValue) { + try + { + if (values[0].GetType().IsEnum && values[1].ToStringSafe() == "Description") + { + return ((Enum)values[0]).ToDescription(); + } + } + catch { } + return values[0].GetPropertyValueByPath(values[1].ToStringSafe()); } else |
