/// <summary> /// Initializes a new instance of the <see cref="TreeNode"/> class. /// </summary> /// <param name="Name">The name.</param> public TreeNode(string Name) { if (Name == null) { throw new ArgumentNullException("Name"); } // TODO: Complete member initialization this.Name = Name; this.IsExpanded = false; this.IsSelected = false; Background = new SolidColorBrush(Colors.White); TreeItems = new NotifiableCollection <TreeNode>(); }
/// <summary> /// Initializes a new instance of the <see cref="TreeNode"/> class. /// </summary> /// <param name="Name">The name.</param> /// <param name="node">Tree node. </param> public TreeNode(TreeNode node) { // TODO: Complete member initialization this.Name = node.Name; ToolTip = node.ToolTipText; this.IsExpanded = node.IsExpanded; this.IsSelected = node.IsSelected; this.Background = node.Background; this.Id = node.Id; this.Parent = node.Parent; Background = new SolidColorBrush(Colors.White); TreeItems = new NotifiableCollection <TreeNode>(); foreach (var item in node.TreeItems) { TreeItems.Add(new TreeNode(item)); } }
public Notifier(NotifiableCollection <T> collection) : this(collection, collection) { }
public MultipleNotices() { Numbers1 = new NotifiableCollection <INumber>(); Numbers2 = new NotifiableCollection <INumber>(); }