Broke OnSearch into two separate functions.
Refactored search code.
Directory entries in the search dialog are now saved in a circular buffer, rather than a list.
A class member was not been initialized in the constructor. Fixed.