From 2bc993a91db5ba828e3a3d659e402a52da03bca1 Mon Sep 17 00:00:00 2001 From: Lukas Ruf Date: Sat, 10 Feb 2018 12:21:12 +0100 Subject: [PATCH] Excluded the Message Snippet Converter --- ClientApp/ModernEncryption.UWP/Package.appxmanifest | 2 +- .../Presentation/Converter/MessageSnippetConverter.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ClientApp/ModernEncryption.UWP/Package.appxmanifest b/ClientApp/ModernEncryption.UWP/Package.appxmanifest index 5a96769..c7182c1 100644 --- a/ClientApp/ModernEncryption.UWP/Package.appxmanifest +++ b/ClientApp/ModernEncryption.UWP/Package.appxmanifest @@ -1,6 +1,6 @@  - + DontSpyUniversalWindows diff --git a/ClientApp/ModernEncryption/Presentation/Converter/MessageSnippetConverter.cs b/ClientApp/ModernEncryption/Presentation/Converter/MessageSnippetConverter.cs index 1a18090..21985ff 100644 --- a/ClientApp/ModernEncryption/Presentation/Converter/MessageSnippetConverter.cs +++ b/ClientApp/ModernEncryption/Presentation/Converter/MessageSnippetConverter.cs @@ -13,13 +13,14 @@ namespace ModernEncryption.Presentation.Converter internal class MessageSnippetConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) - { + {/* var messages = (List)value; if (messages.Count < 1) return ""; // If no messages, do not show a snippet IDecrypt decryption = new DecryptionLogic(messages.Last()); var messageToBeSnip = decryption.Decrypt().Text; if (messageToBeSnip.Length > 10) return messages.Last().Text.Substring(0, 10) + AppResources.MessageSnippetMoreSign; - return messageToBeSnip; + return messageToBeSnip;*/ + return "";//TODO tut nur manchmal muss man wieder einfügen } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)