Пример #1
0
 public GraphicsPalette()
 {
     if (_current == null)
     {
         _current = this;
     }
 }
Пример #2
0
        public void Dispose()
        {
            if (_current == this)
            {
                _current = null;
            }

            foreach (var solidBrush in _solidBrushes.Values)
            {
                solidBrush.Dispose();
            }
        }