Exemple #1
0
        public void FindStrings(ISearchResultService srSvc)
        {
            using (var dlgStrings = dlgFactory.CreateFindStringDialog())
            {
                if (uiSvc.ShowModalDialog(dlgStrings) == DialogResult.OK)
                {
                    var criteria = dlgStrings.GetCriteria();

                    var hits = this.decompilerSvc.Decompiler.Project.Programs
                               .SelectMany(p => new StringFinder(p).FindStrings(criteria));
                    srSvc.ShowAddressSearchResults(
                        hits,
                        new StringSearchDetails(criteria));
                }
            }
        }