示例#1
0
        private static void DisplaySeriesCollection()
        {
            Console.Clear();
            ConsoleAppearance.WriteToEndOfConsoleLine('═');

            //SeriesHandler.GetLocalSeriesCollection().ForEach(DisplaySeriesDetailsToConsole);

            ConsoleAppearance.WriteToEndOfConsoleLine('═');

            // scroll to top
            Console.SetWindowPosition(0, 0);
        }
示例#2
0
        private static void DisplaySeriesDetailsToConsole(TvShow tvShow)
        {
            ConsoleAppearance.WriteToConsoleColoured(ConsoleColor.Green, "Series: ");
            ConsoleAppearance.WriteToConsoleColoured(ConsoleColor.White, tvShow.Name, writeLine: true);

            ConsoleAppearance.WriteToConsoleColoured(ConsoleColor.Green, "Status: ");
            ConsoleAppearance.WriteToConsoleColoured(ConsoleColor.White, tvShow.Status, writeLine: true);

            ConsoleAppearance.WriteToConsoleColoured(ConsoleColor.Green, "NextEpisode: ");
            ConsoleAppearance.WriteToConsoleColoured(ConsoleColor.White, tvShow.NextEpisodeDate ?? "Unknown", writeLine: true);

            if (tvShow.NextEpisodeDate != null)
            {
                ConsoleAppearance.WriteToConsoleColoured(ConsoleColor.Green, "Days left: ");
                ConsoleAppearance.WriteToConsoleColoured(ConsoleColor.White, GetDaysLeft(tvShow.NextEpisodeDate), writeLine: true);
            }

            Console.WriteLine();
        }
示例#3
0
 private static string GetSeriesNameFromUser()
 {
     Console.Write("Input series name: ");
     return(ConsoleAppearance.InputToConsoleInColor(ConsoleColor.Cyan));
 }