private void SetWindowsVersion() { Regex regex = new Regex("(1909|^2)"); _windowsVersion = RegistryClass.GetCurrentWindowsVersion(); _windowsVersionSupportStartMenu = regex.IsMatch(_windowsVersion); }
private RegistryKey GetRegistryKeyForCurrentWindowsVersion() { Regex regex = new Regex("(1809|^19|^20)"); return(regex.IsMatch(_windowsVersion) ? RegistryClass.GetThemeRegistryKey(true) : null); }