Skip to content

Commit

Permalink
Add View Raw data to the message information panel fix #1849
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai committed Sep 25, 2023
1 parent 43d4973 commit 80d3edb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 4 additions & 2 deletions Analogy.CommonControls/UserControls/LogMessagesUC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions Analogy.CommonControls/UserControls/LogMessagesUC.resx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADq
EQAAAk1TRnQBSQFMAgEBCwEAAQQBEwEEARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
EQAAAk1TRnQBSQFMAgEBCwEAAQwBEwEMARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
Expand Down Expand Up @@ -227,7 +227,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAc
CwAAAk1TRnQBSQFMAgEBAwEAARABDwEQAQ8BEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CwAAAk1TRnQBSQFMAgEBAwEAARgBDwEYAQ8BEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
Expand Down
7 changes: 4 additions & 3 deletions Analogy/CommonChangeLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ public static class CommonChangeLog
public static IEnumerable<AnalogyChangeLog> GetChangeLog()
{
return new List<AnalogyChangeLog>
{
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"),
Expand Down

0 comments on commit 80d3edb

Please sign in to comment.