/// <summary>
        /// Update Button and data in RF Generator
        /// </summary>
        public void UpdateButtonStatus()
        {
            if (!m_objRFEGen.PortConnected)
            {
                this.Enabled = true;
                m_GroupControl.EnableGroup(m_objRFEGen.PortConnected);
            }
            else
            {
                m_labRFPowerON.Enabled   = true;
                m_labRFGenCWFreq.Enabled = true;
                m_labRFGenPower.Enabled  = true;

                bool bRFGenConnected = m_objRFEGen.PortConnected && m_objRFEGen.IsGenerator();
                this.Enabled = bRFGenConnected;
                if (m_GroupControl.Enabled)
                {
                    m_sRFGenFreqCW.Enabled      = !m_objRFEGen.RFGenPowerON;
                    m_comboRFGenPowerCW.Enabled = !m_objRFEGen.RFGenPowerON;
                }

                if (m_sRFGenFreqCW != null && !m_sRFGenFreqCW.IsDisposed)
                {
                    if (m_sRFGenFreqCW.Enabled)
                    {
                        m_sRFGenFreqCW.BackColor = Color.RoyalBlue;
                        m_sRFGenFreqCW.ForeColor = Color.White;
                    }
                    else
                    {
                        m_sRFGenFreqCW.BackColor = Color.LightBlue;
                        m_sRFGenFreqCW.ForeColor = Color.DarkBlue;
                    }
                }

                if (m_objRFEGen.RFGenPowerON)
                {
                    m_labRFPowerON.Text      = "RF Power ON";
                    m_labRFPowerON.ForeColor = Color.Red;
                }
                else
                {
                    m_labRFPowerON.Text      = "RF Power OFF";
                    m_labRFPowerON.ForeColor = m_btnRFEGenCWStart.ForeColor;
                }

                m_btnRFEGenCWStart.Enabled = !m_objRFEGen.RFGenPowerON;
                m_btnRFEGenCWStop.Enabled  = m_objRFEGen.RFGenPowerON && (m_objRFEAna.Mode != RFECommunicator.eMode.MODE_TRACKING);
            }
        }
 /// <summary>
 /// Update layout of the internal controls and set the container
 /// </summary>
 public void UpdateUniversalLayout()
 {
     try
     {
         m_GroupControl.m_ContainerForm = this;
         if ((m_objCommunicator != null) && m_objCommunicator.IsGenerator())
         {
             TrackSignalPeak = RFECommunicator.RFExplorerSignalType.Average;
             m_TrackCombo.Items.RemoveAt(2);
             m_TrackCombo.Items.RemoveAt(2);
             m_TrackCombo.Items.RemoveAt(2);
         }
         m_GroupControl.SetUniversalLayout();
     }
     catch {}
 }