Exemplo n.º 1
0
 public override void Add(ChangePoint point)
 {
     if (point != null)
     {
         children.Add(point);
     }
 }
Exemplo n.º 2
0
        public override IEnumerator <ChangePoint> GetEnumerator()
        {
            var changePoints = new Queue <ChangePoint>(new[] { this });

            while (changePoints.Any())
            {
                ChangePoint point = changePoints.Dequeue();
                yield return(point);

                ChangePointComposite compos = point as ChangePointComposite;
                if (compos != null)
                {
                    foreach (ChangePoint p in compos.children)
                    {
                        changePoints.Enqueue(p);
                    }
                }
            }
        }
Exemplo n.º 3
0
 public FakeCommand(CoordInfo info, ChangePoint changePoint) : base(info, "")
 {
     this.Undone = true;
     Point       = changePoint;
 }
Exemplo n.º 4
0
 public override void Add(ChangePoint point)
 {
     throw new NotSupportedException();
 }