Ejemplo n.º 1
0
        /// <summary>
        /// Event handler for the <see cref="Layer.StyleChanged"/> event
        /// </summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The event's arguments</param>
        private void HandleStyleChanged(object sender, EventArgs e)
        {
            if (_currentStyle != null)
            {
                _currentStyle.Dispose();
            }

            _currentStyle = _labelLayer.Style.Clone();
            _currentSize  = _currentStyle.Font.Size;
        }