Example #1
0
 /// <summary>
 /// 添加子节点
 /// </summary>
 /// <param name="component"></param>
 public abstract void Add(Component component);
Example #2
0
 /// <summary>
 /// 删除指定的节点
 /// </summary>
 /// <param name="component"></param>
 public abstract void RemoveAt(Component component);
Example #3
0
 public override void Add(Component component)
 {
     throw new NotSupportedException("不支持Add操作!");
 }
Example #4
0
 public override void RemoveAt(Component component)
 {
     throw new NotSupportedException("不支持RemoveAt操作!");
 }
 public override void Add(Component component)
 {
     _componentList.Add(component);
 }
 public override void RemoveAt(Component component)
 {
     _componentList.Remove(component);
 }
Example #7
0
 /// <inheritdoc />
 public override void Add(Component c)
 {
     Console.WriteLine("leaf can't not add");
 }
Example #8
0
 /// <inheritdoc />
 public override void Remove(Component c)
 {
     Console.WriteLine("leaf can't not remove");
 }
Example #9
0
 public abstract void Remove(Component c);
Example #10
0
 public abstract void Add(Component c);
Example #11
0
 /// <inheritdoc />
 public override void Remove(Component c)
 {
     components.Remove(c);
 }
Example #12
0
 public Composite Add2Self(Component c)
 {
     components.Add(c);
     return(this);
 }
Example #13
0
 /// <inheritdoc />
 public override void Add(Component c)
 {
     components.Add(c);
 }