Click or drag to resize

LogicalTaskTreeViewModelFlattenTree method

Turns a transferred (sub)tree into a flat list. Which node types are displayed in the list and which are not, can be configured externally in the app.config via "FlatNodeListFilter" value="NodeConnector|ValueModifier|Constant|Checker|NodeList|JobList|Snapshot" be determined.

Namespace: Vishnu.ViewModel
Assembly: Vishnu.ViewModel (in Vishnu.ViewModel.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntax
public static ObservableCollection<LogicalNodeViewModel> FlattenTree(
	
	LogicalNodeViewModel root,
	
	ObservableCollection<LogicalNodeViewModel> flatNodeList,
	
	NodeTypes flatNodeListFilter,
	
	bool withRoot = true
)

Parameters

root  LogicalNodeViewModel
Root node of the (sub)tree.
flatNodeList  ObservableCollectionLogicalNodeViewModel
ObservableCollection for recording the nodes.
flatNodeListFilter  NodeTypes
Filter for node types that should not be included in the list.
withRoot  Boolean  (Optional)
If True, the root node is also included in the list (default: True).

Return value

ObservableCollectionLogicalNodeViewModel
Flat list (ObservableCollection) of the nodes of the (sub)tree.
See also