diff options
Diffstat (limited to 'UVtools.WPF/Windows/AboutWindow.axaml.cs')
-rw-r--r-- | UVtools.WPF/Windows/AboutWindow.axaml.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/UVtools.WPF/Windows/AboutWindow.axaml.cs b/UVtools.WPF/Windows/AboutWindow.axaml.cs index 51cbcf1..7bdfd99 100644 --- a/UVtools.WPF/Windows/AboutWindow.axaml.cs +++ b/UVtools.WPF/Windows/AboutWindow.axaml.cs @@ -24,6 +24,7 @@ namespace UVtools.WPF.Windows public string RuntimeDescription => RuntimeInformation.RuntimeIdentifier; public string FrameworkDescription => RuntimeInformation.FrameworkDescription; + public string AvaloniaUIDescription => typeof(AvaloniaObject).Assembly.GetName().Version.ToString(3); public string OpenCVDescription { @@ -71,11 +72,22 @@ namespace UVtools.WPF.Windows AvaloniaXamlLoader.Load(this); } - public void SetOpenCVInformationToClipboard() + public void CopyOpenCVInformationToClipboard() { Application.Current.Clipboard.SetTextAsync(CvInvoke.BuildInformation); } + public void CopyLoadedAssembliesToClipboard() + { + var loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies(); + var sb = new StringBuilder(); + foreach (var assembly in loadedAssemblies) + { + sb.AppendLine(assembly.FullName); + } + Application.Current.Clipboard.SetTextAsync(sb.ToString()); + } + public void OpenLicense() => App.OpenBrowser(About.LicenseUrl); } } |