Пример #1
0
        public void Remove(Graphic g)
        {
            Console.WriteLine("REMOVE");

            _children.Remove(g);
        }
Пример #2
0
        public void Add(Graphic g)
        {
            Console.WriteLine("ADD");

            _children.Add(g);
        }
Пример #3
0
 public void Add(Graphic graphic)
 {
     _childGraphics.Add(graphic);
 }
Пример #4
0
 public override void Remove(Graphic g)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 public override void Remove(Graphic graphic)
 {
     graphic.Parent = null;
     children.Remove(graphic);
 }
Пример #6
0
 public override void Add(Graphic graphic)
 {
     graphic.Parent = this;
     children.Add(graphic);
 }