Example #1
0
 public abstract bool Contains(DrawingElement d);
Example #2
0
 public abstract void Remove(DrawingElement d);
Example #3
0
 public override void Remove(DrawingElement d)
 {
     _elements.Remove(d);
 }
Example #4
0
 public abstract void Add(DrawingElement d);
Example #5
0
 public override bool Contains(DrawingElement d)
 {
     if (_elements.Contains(d))
         return true;
     return false;
 }
Example #6
0
 public override void Add(DrawingElement d)
 {
     _elements.Add(d);
 }
 public override void Remove(DrawingElement c)
 {
     Console.WriteLine(
       "Cannot remove from a PrimitiveElement");
 }
 public override bool Contains(DrawingElement d)
 {
     return false;
 }
 public override void Add(DrawingElement c)
 {
     Console.WriteLine(
       "Cannot add to a PrimitiveElement");
 }