コード例 #1
0
 /// <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;
 }
コード例 #2
0
 public void Visit(InternalShape shape)
 {
     Execute(shape);
 }
コード例 #3
0
ファイル: SaveVisitor.cs プロジェクト: JeroenJonker/DrawApp
        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);
        }