private static void DisplaySeriesCollection() { Console.Clear(); ConsoleAppearance.WriteToEndOfConsoleLine('═'); //SeriesHandler.GetLocalSeriesCollection().ForEach(DisplaySeriesDetailsToConsole); ConsoleAppearance.WriteToEndOfConsoleLine('═'); // scroll to top Console.SetWindowPosition(0, 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(); }
private static string GetSeriesNameFromUser() { Console.Write("Input series name: "); return(ConsoleAppearance.InputToConsoleInColor(ConsoleColor.Cyan)); }