/// <summary> /// Initialise a new <see cref="ReflectionItemTreeNode"/>. /// </summary> /// <param name="value">The associated data item.</param> /// <param name="source">The source of the data.</param> public ReflectionItemTreeNode(ICCNetObject value, ListTreeNodeAttribute source) : base(value) { this.source = source; if (value != null) { Text = value.ToString(); if (value is INotifyPropertyChanged) { (value as INotifyPropertyChanged).PropertyChanged += OnPropertyChanged; } } }
/// <summary> /// Initialise a new <see cref="ReflectionListTreeNode"/>. /// </summary> /// <param name="value">The associated data item.</param> /// <param name="source">The source of the data.</param> public ReflectionListTreeNode(ICCNetObject value, ListTreeNodeAttribute source) { dataItem = value; this.source = source; }