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