Beispiel #1
0
 public static void PublishElementAddEvent(object sender, ElementAddEventArgs e)
 {
     if (ElementAddEvent != null)
     {
         ElementAddEvent.Invoke(sender, e);
     }
 }
 public void AddNode(NodeType value)
 {
     ElementAddEvent?.Invoke(this, null);
     if (ReferenceEquals(this.RootNode, null))
     {
         this.RootNode = new MyNode <NodeType>(value);
         return;
     }
     this.AddNode(this.RootNode, value);
 }