protected override void ResetMatches(string searchKey)
{
if (m_oldSearchKey == searchKey)
return; // Nothing new to do, so skip it.
// disable Go button until we rebuild our match list.
m_btnOK.Enabled = false;
m_oldSearchKey = searchKey;
var ws = (IWritingSystem) m_cbWritingSystems.SelectedItem;
int wsSelHvo = ws != null ? ws.Handle : 0;
if (wsSelHvo == 0)
{
wsSelHvo = TsStringUtils.GetWsAtOffset(m_tbForm.Tss, 0);
if (wsSelHvo == 0)
return;
}
if (m_oldSearchKey != string.Empty || searchKey != string.Empty)
StartSearchAnimation();
ITsString tss = m_tsf.MakeString(searchKey, wsSelHvo);
var field = new SearchField(RnGenericRecTags.kflidTitle, tss);
m_matchingObjectsBrowser.SearchAsync(new[] { field });
}