Esempio n. 1
0
 /// <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>();
 }
Esempio n. 2
0
 /// <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));
     }
 }
Esempio n. 3
0
 public Notifier(NotifiableCollection <T> collection) : this(collection, collection)
 {
 }
 public MultipleNotices()
 {
     Numbers1 = new NotifiableCollection <INumber>();
     Numbers2 = new NotifiableCollection <INumber>();
 }