示例#1
0
        protected override void ProcessRecord()
        {
            string hierarchyObjectId = null;
            string objectId          = null;

            for (DOM.INode current = this.Object; current != null; current = current.Parent)
            {
                var identifiableObject = current as DOM.IIdentifiableObject;
                if (identifiableObject == null)
                {
                    continue;
                }

                if (current is DOM.Notebook || current is DOM.Section || current is DOM.Page)
                {
                    if (hierarchyObjectId == null)
                    {
                        hierarchyObjectId = identifiableObject.ID;
                    }
                    continue;
                }

                if (objectId == null)
                {
                    objectId = identifiableObject.ID;
                }
            }

            Debug.Assert(hierarchyObjectId != null);

            ApplicationManager.Application.NavigateTo(hierarchyObjectId, objectId, this.NewWindow);
        }
示例#2
0
 public NodeEventArgs(DOM.INode node)
     : base()
 {
     this.node = node;
 }
示例#3
0
		public NodeEventArgs (DOM.INode node)
			: base ()
		{
			this.node = node;
		}