public TypeSearchForm(ITypeCache cache, Action<string, int, int> action, Action cancelAction)
{
InitializeComponent();
_syncContext = AsyncOperationManager.SynchronizationContext;
Refresh();
_cache = cache;
_action = action;
_cancelAction = cancelAction;
_runSearch = true;
writeStatistics();
_searchThread = new System.Threading.Thread(continuousSearch);
_searchThread.Start();
}