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