Esempio n. 1
0
 protected void OnAllocationChanged()
 {
     if (ParentGroup != null)
     {
         ParentGroup.OnAllocationChanged();
     }
     else
     {
         AllocationChanged?.Invoke(this, EventArgs.Empty);
     }
 }
Esempio n. 2
0
        public void Free()
        {
            Texture texture;

            lock (_syncObj)
            {
                texture  = _texture;
                _texture = null;
            }

            if (texture != null)
            {
                AllocationChanged?.Invoke(-AllocationSize);
                texture.Dispose();
                _charSet.Clear();
                _currentX  = 0;
                _rowHeight = 0;
                _currentY  = 0;
            }
        }