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;
        }
            public string GetToolTip()
            {
                RenamedItem item = renamed as RenamedItem;

                if (item != null)
                {
                    return(TreeBuilder.BuildHintForItem(item));
                }
                RenamedClass @class = renamed as RenamedClass;

                if (@class != null)
                {
                    return(TreeBuilder.BuildHintForClass(@class));
                }

                return(entity.NameFull);
            }