public GraphicsPalette() { if (_current == null) { _current = this; } }
public void Dispose() { if (_current == this) { _current = null; } foreach (var solidBrush in _solidBrushes.Values) { solidBrush.Dispose(); } }