コード例 #1
0
 public abstract void Remove(ComponentForTransparent c);
コード例 #2
0
 public abstract void Add(ComponentForTransparent c);
コード例 #3
0
 public override void Remove(ComponentForTransparent component)
 {
     children.Remove(component);
 }
コード例 #4
0
 // Methods
 public override void Add(ComponentForTransparent component)
 {
     children.Add(component);
 }
コード例 #5
0
 public override void Remove(ComponentForTransparent c)
 {
     Console.WriteLine("Cannot remove from a leaf");
 }
コード例 #6
0
 // Methods
 public override void Add(ComponentForTransparent c)
 {
     Console.WriteLine("Cannot add to a leaf");
 }