/// <summary> /// Takes the input from PrintPrompt and runs it through a switch. /// Got hung up here for a while because it was looking for UPPER words, /// but ToDoItem and ItemRepo were setting them as Normal. /// Thus it was never finding a match, but also not throwing an error. /// </summary> private void PrintFilter() { string filter = PrintPrompt(); switch (filter) { case "DONE": List <ToDoItem> DoneList = ItemRepo.GetList(filter); ConsoleUtil.PrintList(DoneList); break; case "PENDING": List <ToDoItem> PendingList = ItemRepo.GetList(filter); ConsoleUtil.PrintList(PendingList); break; case "ALL": List <ToDoItem> AllList = ItemRepo.GetList(filter); ConsoleUtil.PrintList(AllList); break; default: FailReply(); break; } }