IsWin8OrHigher() public static method

public static IsWin8OrHigher ( ) : bool
return bool
示例#1
0
        /// <summary>
        /// Random welcome symbol.
        /// </summary>
        /// <returns>Returns a welcome text/emoji.</returns>
        public static string Welcome()
        {
            var random = new Random();

            string[] faces = { "^.^", ":D", ";D", "^_^", "\\ (•◡•) /", "☺", "✌", "😉", "😊", "😆", "🎈",
                               "💡",   "🎬",  "😎",  "🎞",   "🎨",          "🎥", "📽", "📷", "📸", "📹", "🌏","🌍","🌎", "🗺", "🌠" };

            var maxValue = Other.IsWin8OrHigher() ? faces.Length : 6; //Exclusive bound.

            return(faces[random.Next(maxValue)]);
        }
示例#2
0
        /// <summary>
        /// Random welcome text.
        /// </summary>
        /// <returns>Returns a welcome text/emoji.</returns>
        public static string Welcome()
        {
            Random random = new Random();

            string[] faces = { "^.^", ":D", ";D", "^_^",            "\\ (•◡•) /", "😉", "😊", "😆", "☺", "✌", "🎈",
                               "💡",   "🎬",  "🌉",  "🕐🕑🕒🕓🕔🕕\n🕖🕗🕘🕙🕚🕛", "☁",          "🌁", "⛅", "☀", "🌠" };

            int maxValue = Other.IsWin8OrHigher() ? faces.Length : 7;

            return(faces[random.Next(maxValue)]);
        }