Ejemplo n.º 1
0
        public void OpenSearchDialog()
        {
            if (CurrentLogWindow == null)
            {
                return;
            }

            SearchDialog dlg = new SearchDialog();

            AddOwnedForm(dlg);
            dlg.TopMost = TopMost;
            SearchParams.historyList = ConfigManager.Settings.searchHistoryList;
            dlg.SearchParams         = SearchParams;
            DialogResult res = dlg.ShowDialog();

            if (res == DialogResult.OK && dlg.SearchParams != null && !string.IsNullOrWhiteSpace(dlg.SearchParams.searchText))
            {
                SearchParams            = dlg.SearchParams;
                SearchParams.isFindNext = false;
                CurrentLogWindow.StartSearch();
            }
        }