public override void Remove(Component component) { components.Remove(component); }
public abstract void Remove(Component component);
public override void Remove(Component component) { throw new NotSupportedException("File can't support the operation!"); }
public void RemoveChild(Component component) { children.Remove(component); }
public abstract void Add(Component component);
public abstract void Remove(Component c);
public override void Remove(Component component) { children.Remove(component); }
public void AddChild(Component component) { children.Add(component); }
public void addComponent(Component c) { content.Add(c); }
public void removeComponent(Component c) { content.Remove(c); }
public override void Add(Component component) { }
public override void Remove(Component component) { }
public void Remove(Component c) { Console.WriteLine("不支持该方法"); return; }
public override void Remove(Component c) { Console.WriteLine("Cannot remove from a leaf"); }
public override void Add(Component component) { _children.Add(component); }
public abstract void Add(Component c);
public override void Remove(Component component) { _children.Remove(component); }
public override void Add(Component component) { children.Add(component); }
public void Remove(Component component) { components.Remove(component); }
public override void Add(Component c) { Console.WriteLine("Cannot add to a leaf"); }