예제 #1
0
        /// <summary> Select this label. </summary>
        public void Select()
        {
            if (!_isSelected)
            {
                foreach (Label label in _owner.Labels)
                {
                    label.Deselect();
                }

                _isSelected = true;
                OnSelected(_sourceData);
                _borderThickness = _borderThicknessSelected;
                if (_contentStyle != null)
                {
                    _contentStyle.fontStyle = FontStyle.Bold;
                }
                if (LabelEditorWindow.IsShown)
                {
                    LabelEditorWindow.Show(this);
                }
                Refresh();
            }
        }
예제 #2
0
 protected void ContextEditCallback(object obj)
 {
     LabelEditorWindow.Show(this);
 }