Esempio n. 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);
        }
Esempio n. 2
0
 public NodeEventArgs(DOM.INode node)
     : base()
 {
     this.node = node;
 }
Esempio n. 3
0
		public NodeEventArgs (DOM.INode node)
			: base ()
		{
			this.node = node;
		}