Example #1
0
        public void AddSearchResult(FormFindReplace.SearchLocation FoundInfo)
        {
            ListViewItem item = new ListViewItem();

            item.Text = FoundInfo.LineNumber.ToString();
            if (FoundInfo.FoundInDocument == null)
            {
                item.SubItems.Add("Unknown location");
                item.Tag = null;
            }
            else
            {
                item.SubItems.Add(FoundInfo.FoundInDocument.DocumentFilename);
                item.Tag = FoundInfo.FoundInDocument.FullPath;
            }
            item.SubItems.Add(FoundInfo.FoundLine);

            listResults.Items.Add(item);
        }
Example #2
0
 public void AddSearchResult(FormFindReplace.SearchLocation FoundLocation)
 {
     Core.MainForm.m_SearchResults.AddSearchResult(FoundLocation);
 }