Beispiel #1
0
        public void SetCurrentItem(Panel pnl)
        {
            _pnlmain = pnl;
            //btnHotKeySet.Visible = false;
            btnUrlSet.Focus();
            btnUrlSet.BackColor        = Color.LightSkyBlue;
            btnUrlSet.ForeColor        = Color.White;
            btnShellIESet.BackColor    = Color.Transparent;
            btnCallNumberSet.BackColor = Color.Transparent;
            btnHotKeySet.BackColor     = Color.Transparent;

            _pnlmain.Controls.Clear();
            if (_general == null)
            {
                _general      = new UrlSettingControl();
                _general.Dock = DockStyle.Fill;
            }

            _pnlmain.Controls.Add(_general);
            if (_shell == null)
            {
                _shell      = new ShellSettingControl();
                _shell.Dock = DockStyle.Fill;
            }
            if (_callnumber == null)
            {
                _callnumber      = new CallNumberSettingControl();
                _callnumber.Dock = DockStyle.Fill;
            }
            if (_hotkeyCtl == null)
            {
                _hotkeyCtl      = new HotKeySetControl();
                _hotkeyCtl.Dock = DockStyle.Fill;
            }
        }
 public void SetCurrentItem( Panel pnl )
 {
     _pnlmain = pnl;
     //btnHotKeySet.Visible = false;
     btnUrlSet.Focus();
     btnUrlSet.BackColor = Color.LightSkyBlue;
     btnUrlSet.ForeColor = Color.White;
     btnShellIESet.BackColor = Color.Transparent;
     btnCallNumberSet.BackColor = Color.Transparent;
     btnHotKeySet.BackColor = Color.Transparent;
    
     _pnlmain.Controls.Clear();
     if (_general == null)
     {
         _general = new UrlSettingControl();
         _general.Dock = DockStyle.Fill;
     }
    
     _pnlmain.Controls.Add( _general );
     if (_shell == null)
     {
         _shell = new ShellSettingControl();
         _shell.Dock = DockStyle.Fill;
     }
     if (_callnumber == null)
     {
         _callnumber = new CallNumberSettingControl();
         _callnumber.Dock = DockStyle.Fill;
     }
     if (_hotkeyCtl == null)
     {
         _hotkeyCtl = new HotKeySetControl();
         _hotkeyCtl.Dock = DockStyle.Fill;
     }
 }