//This is the display screen for the fileSearch using the event in the logicClass private void NewSearch(string path) { string searchStr = GetSearchStr(); if (searchStr != "") { Console.Clear(); Console.WriteLine($"Searching for {searchStr} in {path}. . ."); logicClass.fileFoundEvent += new FileFoundHandler(DisplayNewFile); Console.WriteLine("*****************************************************************************"); int resultsFound = logicClass.BeginSearch(path, searchStr); if (resultsFound == 0) { Console.WriteLine($"No files by the name {searchStr} were found in {path}"); } Console.WriteLine("*****************************************************************************"); if (resultsFound != 0) { Console.WriteLine($"\n{resultsFound} results found in total!"); } PressKey(); } else { Console.Clear(); } }