Esempio n. 1
0
		internal static bool ActivateItem(SharpTreeNode node, TypeDefinition def)
		{
			if (def != null) {
				var assemblyListNode = node.Ancestors().OfType<AssemblyListTreeNode>().FirstOrDefault();
				if (assemblyListNode != null) {
					assemblyListNode.Select(assemblyListNode.FindTypeNode(def));
					return true;
				}
			}
			return false;
		}
Esempio n. 2
0
 public void ScrollIntoView(SharpTreeNode node)
 {
     if (node == null)
     {
         throw new ArgumentNullException("node");
     }
     foreach (SharpTreeNode ancestor in node.Ancestors())
     {
         ancestor.IsExpanded = true;
     }
     base.ScrollIntoView(node);
 }
Esempio n. 3
0
 public void ScrollIntoView(SharpTreeNode node)
 {
     if (node == null)
         throw new ArgumentNullException("node");
     foreach (SharpTreeNode ancestor in node.Ancestors())
         ancestor.IsExpanded = true;
     base.ScrollIntoView(node);
 }