diff --git a/waasa/UI/WindowInfo.xaml b/waasa/UI/WindowInfo.xaml index a777f15..cb2e901 100644 --- a/waasa/UI/WindowInfo.xaml +++ b/waasa/UI/WindowInfo.xaml @@ -8,16 +8,19 @@ Title="Wazza - Extension Details" Height="450" Width="800"> - + + + + + + - - - + diff --git a/waasa/UI/WindowInfo.xaml.cs b/waasa/UI/WindowInfo.xaml.cs index 5edcf89..af6bce3 100644 --- a/waasa/UI/WindowInfo.xaml.cs +++ b/waasa/UI/WindowInfo.xaml.cs @@ -1,6 +1,7 @@ using System.Windows; using waasa.Services; using waasa.Models; +using YamlDotNet.Serialization; namespace waasa @@ -15,6 +16,7 @@ public class InfoData public string ExtensionRegInfo { get; set; } = ""; public string ExtensionObjInfo { get; set; } = ""; public string Shlwapi { get; set; } = ""; + public string BadfileInfo { get; set; } = ""; } @@ -27,6 +29,14 @@ public WindowInfo(_GatheredData gatheredData, _FileExtension fe) infoData.ExtensionObjInfo = gatheredData.GetObjidInfo(fe.Extension); infoData.Shlwapi = gatheredData.GetShlwapiInfo(fe.Extension); + if (fe.InfoExtension.Extension != "") { + var serializer = new SerializerBuilder().Build(); + string yamlString = serializer.Serialize(fe.InfoExtension); + infoData.BadfileInfo = yamlString; + } else { + infoData.BadfileInfo = "No data"; + } + this.DataContext = infoData; } }