From 80d3edbfc8367b04f01b297fbf023812e46422cf Mon Sep 17 00:00:00 2001 From: Lior Banai Date: Mon, 25 Sep 2023 11:35:41 +0300 Subject: [PATCH] Add View Raw data to the message information panel fix #1849 --- Analogy.CommonControls/UserControls/LogMessagesUC.cs | 6 ++++-- Analogy.CommonControls/UserControls/LogMessagesUC.resx | 4 ++-- Analogy/CommonChangeLog.cs | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Analogy.CommonControls/UserControls/LogMessagesUC.cs b/Analogy.CommonControls/UserControls/LogMessagesUC.cs index c0891c5b..d4af066a 100644 --- a/Analogy.CommonControls/UserControls/LogMessagesUC.cs +++ b/Analogy.CommonControls/UserControls/LogMessagesUC.cs @@ -666,7 +666,8 @@ private void SetupEventsHandlers() case AnalogyRowTextType.XML: case AnalogyRowTextType.HTML: case AnalogyRowTextType.Markdown: - + FormMessageDetails details = new(m, Messages, "", Settings); + details.Show(this); break; case AnalogyRowTextType.JSON: var viewer = new JsonViewerForm(m, Settings); @@ -2482,7 +2483,8 @@ private void LoadTextBoxes(AnalogyLogMessage m) case AnalogyRowTextType.XML: case AnalogyRowTextType.HTML: case AnalogyRowTextType.Markdown: - bbtnRawMessageViewer.Visibility = BarItemVisibility.Never; + bbtnRawMessageViewer.Visibility = string.IsNullOrEmpty(m.RawText) ? BarItemVisibility.Never : BarItemVisibility.Always; + bbtnRawMessageViewer.Caption = "View Raw Data"; break; case AnalogyRowTextType.JSON: bbtnRawMessageViewer.Visibility = BarItemVisibility.Always; diff --git a/Analogy.CommonControls/UserControls/LogMessagesUC.resx b/Analogy.CommonControls/UserControls/LogMessagesUC.resx index 2b9cdb32..00113814 100644 --- a/Analogy.CommonControls/UserControls/LogMessagesUC.resx +++ b/Analogy.CommonControls/UserControls/LogMessagesUC.resx @@ -125,7 +125,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx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MBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA diff --git a/Analogy/CommonChangeLog.cs b/Analogy/CommonChangeLog.cs index 11d71f33..a3010f28 100644 --- a/Analogy/CommonChangeLog.cs +++ b/Analogy/CommonChangeLog.cs @@ -8,9 +8,10 @@ public static class CommonChangeLog public static IEnumerable GetChangeLog() { return new List - { - new ("V5.1.0.- Add collapsible folder section #1850",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2023,09,25),"5.1.0.0"), - new ("V5.1.0.- Refactor file association to use data provider and not data factory #1843",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2023,09,15),"5.1.0.0"), + { + new ("V5.1.0 - Add View Raw data to the message information panel #1849",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2023,09,25),"5.1.0.0"), + new ("V5.1.0 - Add collapsible folder section #1850",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2023,09,25),"5.1.0.0"), + new ("V5.1.0 - Refactor file association to use data provider and not data factory #1843",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2023,09,15),"5.1.0.0"), new ("V5.0.0 - Exception in LogMessagesUC's LogGrid_CustomSummaryCalculate during/after Time Difference calculation #1839", AnalogChangeLogType.Bug,"Lior Banai",new DateTime(2023,09,05),"5.0.0.0"), new ("V5.0.0 - Multiple LoadJson calls #1831", AnalogChangeLogType.Bug,"Lior Banai",new DateTime(2023,09,05),"5.0.0.0"), new ("V5.0.0 - Disable Updates If Running from Program Data Folder #1841", AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2023,09,05),"5.0.0.0"),