public override void Add(ChangePoint point) { if (point != null) { children.Add(point); } }
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); } } } }
public FakeCommand(CoordInfo info, ChangePoint changePoint) : base(info, "") { this.Undone = true; Point = changePoint; }
public override void Add(ChangePoint point) { throw new NotSupportedException(); }