Пример #1
0
        private void SetWindowsVersion()
        {
            Regex regex = new Regex("(1909|^2)");

            _windowsVersion = RegistryClass.GetCurrentWindowsVersion();
            _windowsVersionSupportStartMenu = regex.IsMatch(_windowsVersion);
        }
Пример #2
0
        private RegistryKey GetRegistryKeyForCurrentWindowsVersion()
        {
            Regex regex = new Regex("(1809|^19|^20)");

            return(regex.IsMatch(_windowsVersion) ? RegistryClass.GetThemeRegistryKey(true) : null);
        }