Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (dgImage != null)
     {
         dgImage.Dispose();
         dgImage = null;
     }
 }
Пример #2
0
 // Implement the IDisposable interface.
 public void Dispose()
 {
     if (toolkitImage != null)
     {
         toolkitImage.Dispose();
         toolkitImage = null;
     }
     if (image != null)
     {
         image.Dispose();
         image    = null;
         frame    = null;
         frameNum = 0;
     }
 }