Example #1
0
 public override void Remove(Component c)
 {
     Console.WriteLine("Cannot remove from a leaf");
 }
Example #2
0
 public override void Add(Component c)
 {
     Console.WriteLine("Cannot add to a leaf");
 }
Example #3
0
 public override void Remove(Component component)
 {
     _children.Remove(component);
 }
Example #4
0
 public override void Add(Component component)
 {
     _children.Add(component);
 }
Example #5
0
 public abstract void Remove(Component c);
Example #6
0
 public abstract void Add(Component c);