private void Find(bool forward) { if (_findDirty) { _findDirty = false; if (!_searchManager.Search(_find.Text)) { MessageBox.Show(this, "No matches found."); return; } } if (!_searchManager.FindNext(forward)) { MessageBox.Show(this, "Find reached the starting point of the search."); } }
public bool FindNext(bool forward) { Debug.Assert(_searchManager != null); return(_searchManager.FindNext(forward)); }