Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (buttonFont != null)
         {
             buttonFont.Dispose();
             buttonFont = null;
         }
         if (passButton != null)
         {
             passButton.Dispose();
             passButton = null;
         }
         if (passDot != null)
         {
             passDot.Dispose();
             passDot = null;
         }
         if (surf != null)
         {
             surf.Dispose();
             surf = null;
         }
         if (drawer != null)
         {
             drawer.Dispose();
             drawer = null;
         }
     }
 }
Пример #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (surf != null)
         {
             surf.Dispose();
             surf = null;
         }
         if (cellBackground != null)
         {
             cellBackground.Dispose();
             cellBackground = null;
         }
         if (font != null)
         {
             font.Dispose();
             font = null;
         }
         if (Font != null)
         {
             Font.Dispose();
             Font = null;
         }
         if (KingLeft != null)
         {
             KingLeft.Dispose();
             KingLeft = null;
         }
         if (KingRight != null)
         {
             KingRight.Dispose();
             KingRight = null;
         }
         if (KingSmile != null)
         {
             KingSmile.Dispose();
             KingSmile = null;
         }
         if (drawer != null)
         {
             drawer.Dispose();
             drawer = null;
         }
     }
 }