Ejemplo n.º 1
0
        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.");
            }
        }
Ejemplo n.º 2
0
        public bool FindNext(bool forward)
        {
            Debug.Assert(_searchManager != null);

            return(_searchManager.FindNext(forward));
        }