usablity tweak

May 20, 2008 at 3:18 AM

I've found the UI a little better when I bolded the exceptions that are thrown in the current function/statement vs child branches of the code.

foreach(var location in pair.Value)
 {
    Type container = (location.Method.DeclaringType as ITypeDeclaration).Translate();
    if (container != null)
    {
        typeNode.Nodes.Add("Assembly: " + container.Assembly.FullName);
        typeNode.Nodes.Add("Type: " + container.FullName);
        typeNode.Nodes.Add("Method: " + location.Method.Name);
        typeNode.Nodes.Add("Location: " + location.Instruction.Offset);
        if (location.Method.Name == n)
        {
            if (container.FullName == tn)
            {
                System.Drawing.Font f = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Bold);
                typeNode.NodeFont = f;
            }
        }
    }