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