/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public virtual void Dispose() { if (InternalShape == null) { return; } InternalShape.Dispose(); InternalShape = null; }
public void Visit(InternalShape shape) { Execute(shape); }
public void Visit(InternalShape shape) { string line = string.Format("{0}{1} {2} {3} {4} {5}", Spaces, shape.GetName(), shape.Location.X, shape.Location.Y, shape.Width, shape.Height); stringBuilder.AppendLine(line); }