private void ShowAllContent() { _console.Clear(); List <StreamingContent> listOfContent = _streamingRepo.GetContents(); foreach (StreamingContent contentVariable in listOfContent) { DisplayContent(contentVariable); } _console.WriteLine("Press any key to continue..."); _console.ReadKey(); }
private void ShowAllContent() { _console.Clear(); List <StreamingContent> listOfContents = _streamingRepo.GetContents(); // stores all contents in the the streaming repository in a list called listoftcontents with type StreamingContent foreach (StreamingContent contentVariable in listOfContents) //foreach { DisplayContent(contentVariable); _console.WriteLine("------------------"); // makes lines in the code so it is easier to read. } _console.WriteLine("Press any key to continue"); _console.ReadKey(); }
private void ShowAllContent() { _console.Clear(); List <StreamingContent> listOfContent = _streamingRepo.GetContents(); foreach (StreamingContent contentVariable in listOfContent) //for each loop, what is collection made out of { DisplayContent(contentVariable); _console.WriteLine("--------------"); //_console.WriteLine($"{contentVariable.Title} {contentVariable.Description}");//going thru every single item } _console.WriteLine("Press any key to continue..."); _console.ReadKey(); }
private void ShowAllContent() { _console.Clear(); //Get the items from our fake database List <StreamingContent> listOfContent = _streamingRepo.GetContents(); //Take EACH item and display proprty values foreach (StreamingContent content in listOfContent) { DisplaySimple(content); } //Pause the program so the user can see the printed objects _console.WriteLine("Press any key to continue..............."); _console.ReadKey(); //GOAL: Show all items in our fake database }
private void ShowAllContent() { _console.Clear(); //get content List <StreamingContent> listOfContent = _streamingRepo.GetContents(); // iterate thru collection // made out of Streaming Content // varialbe contentVariable foreach (StreamingContent contentVariable in listOfContent) { DisplayContent(contentVariable); _console.WriteLine("----------------------------"); } _console.WriteLine("Press any key to continue..."); _console.ReadKey(); }
private void ShowAllContent() { Console.Clear(); // Get Items from Database. List <StreamingContent> listOfContent = _streamingRepository.GetContents(); // Take EACH Item & Display Property Values. foreach (StreamingContent content in listOfContent) { DisplaySimple(content); } // Pause the Program so the user can See the Printed Objects. Console.WriteLine("Press any key to continue ..."); Console.ReadKey(); // Goal: Show All Items in Database. }
private void ShowAllContent() { _console.Clear(); // Get all of our content List <StreamingContent> directory = _streamingRepo.GetContents(); // Go through each item and display its properties foreach (StreamingContent content in directory) { _console.WriteLine($"Title: {content.Title}\n" + $"Genre: {content.Genre}\n" + $"Description: {content.Description}\n" + $"Star Rating: {content.StarRating}\n" + $"Maturity Rating: {content.TypeOfMaturityRating}\n" + $"Family Friendly: {content.IsFamilyFriendly}\n" + $"Language: {content.TypeOfLanguage}\n" + $"Streaming Quality: {content.TypeOfStreamingQualityType}\n"); } _console.WriteLine("Press any key to continue..."); _console.ReadKey(); }
private void ShowAllContent() { _console.Clear(); // get all content List <StreamingContent> contents = _streamingRepository.GetContents(); // go through all content and display its properties foreach (StreamingContent content in contents) { _console.WriteLine($"Title: {content.Title}\n" + $"Genre: {content.Genre}\n" + $"Description: {content.Description}\n" + $"Star Rating: {content.StarRating}\n" + $"Maturity Rating: {content.MaturityRating}\n" + $"Language: {content.Language}\n" + $"Type Of Streaming Quality: {content.TypeOfStreamingQuality}\n" + $"Is Family Friendly: {content.IsFamilyFriendly}\n"); } _console.WriteLine("Press any key to continue."); _console.ReadKey(); // pressing ANY key will close the window // _console.ReadLine(); // pressing ENTER will close the window }