private void BuildResult(RenamedBase item)
        {
            ListViewItem l = new ListViewItem(item.NameOldSimple);

            l.ImageIndex = TreeBuilder.GetIconForEntity(item.EntityType, mainForm);
            lvResults.Items.Add(l);
            ItemDescriptor d = new ItemDescriptor(item);

            l.Tag = d;
            string tip;

            if (item is RenamedClass)
            {
                tip = TreeBuilder.BuildHintForClass((RenamedClass)item);
            }
            else
            {
                tip = TreeBuilder.BuildHintForItem((RenamedItem)item);
            }

            if (!mainForm.HavePdb)
            {
                tip += "Unable to map to source code, no PDB files attached.";
            }
            else
            {
                if (item.EntityType != EntityType.Method)
                {
                    tip += "Mapping to source code works only for methods.";
                }
                else
                {
                    string filename;
                    int    line;
                    if (mainForm.SearchInPdb(out filename, out line, item))
                    {
                        tip       += "Source position:\n" + filename + ":" + line + " (Ctrl+Click to open)";
                        d.Filename = filename;
                        d.Line     = line;
                    }
                    else
                    {
                        tip += "Unable to map to source code.";
                    }
                }
            }

            tip += "\nDouble-click to select in classes tree.";

            l.ToolTipText = tip;
        }
        private void ProcessPdb(ItemDescriptor d)
        {
            if (d.Renamed == null)
            {
                return;
            }
            string filename;
            int    line;

            if (mainForm.SearchInPdb(out filename, out line, d.Renamed))
            {
                d.Filename = filename;
                d.Line     = line;
            }
        }