public void DisplayResultsOfSecondOption(string UserFileName, string UserRootDirectory) // file name + directory { DisplaySearchStartMsg(); FileSearcher fs = new FileSearcher(); fs.FoundOneFile += DisplayFile; fs.Search(UserRootDirectory, UserFileName); DisplaySearchEndMsg(); }
public void DisplayResultsOfFirstOption(string UserFileName) // file name only { DisplaySearchStartMsg(); FileSearcher fs = new FileSearcher(); fs.FoundOneFile += DisplayFile; fs.SearchEntirePC(UserFileName); DisplaySearchEndMsg(); }