// Dispose of this pen. public void Dispose() { lock (this) { if (toolkitPen != null) { toolkitPen.Dispose(); toolkitPen = null; } toolkit = null; if (brush != null) { brush.Modified(); } } }
// Dispose of this pen. public void Dispose() { lock (this) { if (toolkitPen != null) { toolkitPen.Dispose(); toolkitPen = null; } toolkit = null; if (brush != null) { brush.Modified(); } } }