Пример #1
0
 public override void Add(DrawingElement d)
 {
     Console.WriteLine("Cannot add to a PrimitiveElement");
 }
Пример #2
0
 public override void Remove(DrawingElement d)
 {
     Console.WriteLine("Cannot remove from a PrimitiveElement");
 }
 public override void Remove(DrawingElement d)
 {
     elements.Remove(d);
 }
 public override void Add(DrawingElement d)
 {
     elements.Add(d);
 }
 public abstract void Remove(DrawingElement d);
 public abstract void Add(DrawingElement d);