Exemple #1
0
 private void Dispose(bool disposing)
 {
     if (_canvasLinearGradientBrush != null)
     {
         _canvasLinearGradientBrush.Dispose();
         _canvasLinearGradientBrush = null;
     }
 }
 private void Dispose(bool disposing)
 {
     if (_canvasLinearGradientBrush != null)
     {
         try
         {
             _canvasLinearGradientBrush.Dispose();
         }
         catch
         {
             // Ignore
         }
         finally
         {
             _canvasLinearGradientBrush = null;
         }
     }
 }