Exemplo n.º 1
0
 private void DisposeLabel()
 {
     if (_label != null)
     {
         _label.Dispose();
         _label = null;
     }
 }
Exemplo n.º 2
0
 private void DisposeLabel()
 {
     if (_label != null)
     {
         ((Session)HostNode.Session).UnregisterControlHelp(_label);
         _label.Dispose();
         _label = null;
     }
 }
Exemplo n.º 3
0
 private void CreateLabel()
 {
     _label = new ExtendedLabel();
     try
     {
         _label.BackColor   = ((Session)HostNode.Session).Theme.TextBackgroundColor;
         _label.AutoSize    = true;
         _label.Parent      = ((IWindowsContainerElement)Parent).Control;
         _label.OnMnemonic += new EventHandler(LabelMnemonic);
     }
     catch
     {
         DisposeLabel();
         throw;
     }
 }
Exemplo n.º 4
0
        // Node

        protected override void Activate()
        {
            _label = new ExtendedLabel();
            try
            {
                _label.BackColor = ((Windows.Session)HostNode.Session).Theme.TextBackgroundColor;
                _label.AutoSize  = false;
                _label.Visible   = GetVisible();
                _label.Parent    = ((IWindowsContainerElement)Parent).Control;
                ((Session)HostNode.Session).RegisterControlHelp(_label, this);
                SetLabelText(GetText());
                base.Activate();
            }
            catch
            {
                DisposeLabel();
                throw;
            }
        }