1
0

Updated viewer control

This commit is contained in:
Benjamin Höglinger-Stelzer 2018-10-26 23:42:59 +02:00
parent 2b1071408d
commit 02f086e8ec
2 changed files with 51 additions and 20 deletions

View File

@ -1,16 +1,11 @@
using System.Diagnostics; using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Text; using System.Text;
using System.Windows; using System.Windows;
using System.Windows.Documents; using System.Windows.Input;
using System.Xaml;
using DerpingDrivers.Util; using DerpingDrivers.Util;
using MahApps.Metro.Controls; using MahApps.Metro.Controls;
using Markdig; using Markdig;
using Markdig.Wpf; using Markdig.Wpf;
using Markdown = Markdig.Wpf.Markdown;
using XamlReader = System.Windows.Markup.XamlReader;
namespace DerpingDrivers namespace DerpingDrivers
{ {
@ -26,13 +21,6 @@ namespace DerpingDrivers
Loaded += OnLoaded; Loaded += OnLoaded;
} }
private void OnLoaded(object sender, RoutedEventArgs e)
{
SummaryViewer.Pipeline = new MarkdownPipelineBuilder().UseSupportedExtensions().Build();
SummaryViewer.Markdown = MatchingSummaryContent;
}
/// <summary> /// <summary>
/// Gets Operating System Architecture display name. /// Gets Operating System Architecture display name.
/// </summary> /// </summary>
@ -81,20 +69,56 @@ namespace DerpingDrivers
{ {
get get
{ {
if (!CodeIntegrityHelper.IsTestSignEnabled) #region TESTSIGNING mode
{
if (CodeIntegrityHelper.IsTestSignEnabled)
return Encoding.UTF8.GetString(Properties.Resources.testsigning); return Encoding.UTF8.GetString(Properties.Resources.testsigning);
}
if (OsVersionInfo.IsWindows10) #endregion
{
} #region Windows 10, x64
if (OsVersionInfo.IsWindows10
&& OsVersionInfo.OsBits == OsVersionInfo.SoftwareArchitecture.Bit64
&& UEFIHelper.IsRunningInUEFIMode
&& !UEFIHelper.IsSecureBootEnabled
&& !OsUpgradeDetection.IsGrandfathered)
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_clean);
if (OsVersionInfo.IsWindows10
&& OsVersionInfo.OsBits == OsVersionInfo.SoftwareArchitecture.Bit64
&& UEFIHelper.IsRunningInUEFIMode
&& UEFIHelper.IsSecureBootEnabled
&& !OsUpgradeDetection.IsGrandfathered)
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_secure_clean);
if (OsVersionInfo.IsWindows10
&& OsVersionInfo.OsBits == OsVersionInfo.SoftwareArchitecture.Bit64
&& UEFIHelper.IsRunningInUEFIMode
&& UEFIHelper.IsSecureBootEnabled
&& OsUpgradeDetection.IsGrandfathered)
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_secure_upgraded);
if (OsVersionInfo.IsWindows10
&& OsVersionInfo.OsBits == OsVersionInfo.SoftwareArchitecture.Bit64
&& UEFIHelper.IsRunningInUEFIMode
&& !UEFIHelper.IsSecureBootEnabled
&& OsUpgradeDetection.IsGrandfathered)
return Encoding.UTF8.GetString(Properties.Resources.win10_x64_uefi_upgraded);
#endregion
return "*None available*"; return "*None available*";
} }
} }
private void OnLoaded(object sender, RoutedEventArgs e)
{
SummaryViewer.Pipeline = new MarkdownPipelineBuilder().UseSupportedExtensions().Build();
SummaryViewer.Markdown = MatchingSummaryContent;
}
private void Web_OnClick(object sender, RoutedEventArgs e) private void Web_OnClick(object sender, RoutedEventArgs e)
{ {
Process.Start("https://vigem.org"); Process.Start("https://vigem.org");
@ -110,7 +134,7 @@ namespace DerpingDrivers
Process.Start("https://forums.vigem.org"); Process.Start("https://forums.vigem.org");
} }
private void OpenHyperlink(object sender, System.Windows.Input.ExecutedRoutedEventArgs e) private void OpenHyperlink(object sender, ExecutedRoutedEventArgs e)
{ {
Process.Start(e.Parameter.ToString()); Process.Start(e.Parameter.ToString());
} }

View File

@ -0,0 +1,7 @@
# Windows 10 64-bits (UEFI)
## Abstract
- 👌 running on [64-Bit](https://en.wikipedia.org/wiki/X86-64) installation; you can use more than 4 GiB of memory.
- 👌 running in [UEFI mode](https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface); you can use all modern features of your mainboard and processor like booting from drives greater than 2 TiB and advanced security solutions like [TPM chips](https://en.wikipedia.org/wiki/Trusted_Platform_Module) and [Secure Boot](https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface#Secure_boot_criticism).
- ⚠️ Secure Boot is available but disabled.