Exemple #1
0
        public static void DisplayInfo()
        {
            ConsoleExtensions.WriteLine("Wallpaper Changer v1.0.0", ConsoleColor.Yellow);
            Console.WriteLine();
            DisplayStyleGuideTable();

            // Correct Example
            Console.WriteLine();
            ConsoleExtensions.WriteLine("Example (Correct Usage)", ConsoleColor.Green);
            ConsoleExtensions.Write("\tWallpaper Location: ", ConsoleColor.Green);
            ConsoleExtensions.WriteLine("C:\\Wallpapers\\wallpaper.jpg", ConsoleColor.DarkGray);
            ConsoleExtensions.Write("\tWallpaper Style: ", ConsoleColor.Green);
            ConsoleExtensions.WriteLine("5", ConsoleColor.DarkGray);

            // Incorrect Example
            Console.WriteLine();
            ConsoleExtensions.WriteLine("Example (Incorrect Usage)", ConsoleColor.Red);
            ConsoleExtensions.Write("\tWallpaper Location: ", ConsoleColor.Red);
            ConsoleExtensions.WriteLine("https://i.ytimg.com/vi/hAq443fhyDo/maxresdefault.jpg", ConsoleColor.DarkGray);
            ConsoleExtensions.Write("\tWallpaper Style: ", ConsoleColor.Red);
            ConsoleExtensions.WriteLine("big", ConsoleColor.DarkGray);
        }