Exemplo n.º 1
0
 /// <summary>Clean up any resources being used.</summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (!_isDisposed)
     {
         if (disposing)
         {
             if (components != null)
             {
                 components.Dispose();
             }
             if (BufferCache != null)
             {
                 BufferCache.Dispose();   BufferCache = null;
             }
             BufferBack.Dispose();    BufferBack    = null;
             BufferMap.Dispose();     BufferMap     = null;
             BufferShading.Dispose(); BufferShading = null;
             BufferUnits.Dispose();   BufferUnits   = null;
         }
         _isDisposed = true;
         base.Dispose(disposing);
     }
 }