예제 #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);
        }