private NodeViewModel(IDocument document, UndoManager undoManager, ITreeNode treeNodeObject, INodeViewModel parent, NodeInfo info, bool isRootNode) { _document = document; _undoManager = undoManager; _treeNodeObject = treeNodeObject; IsRootNode = isRootNode; Parent = parent; NodeInfo = info; Children = new ObservableCollection <INodeViewModel>(); this.PagePreviewCommand = new DelegateCommand <object>(PagePreviewExecute); this.EndPreviewCommand = new DelegateCommand <object>(EndPreviewExecute); if (treeNodeObject != null) { SetNodeImage(); } }
public NodeViewModel(IDocument document, UndoManager undoManager, ITreeNode treeNodeObject, NodeInfo info, bool isRootNode = false) : this(document, undoManager, treeNodeObject, null, info, isRootNode) { }