예제 #1
0
 private void FrequencySpectrumAccordionControlElement_Click(object sender, EventArgs e)
 {
     m_UI_FrequencySpectrum = new UI_FrequencySpectrum();
     this.FrequencySpectrumUserControl.Controls.Clear();
     this.FrequencySpectrumUserControl.Controls.Add(m_UI_FrequencySpectrum);
     this.m_UI_FrequencySpectrum.Dock = DockStyle.Fill;
 }
예제 #2
0
        private void FrequencySpectrumBtn_ItemClick(object sender, ItemClickEventArgs e)
        {
            XtraUserControl userControl = FrequencySpectrumUserControl;

            tabbedView.AddDocument(userControl);
            tabbedView.ActivateDocument(userControl);

            m_UI_FrequencySpectrum = new UI_FrequencySpectrum();
            this.FrequencySpectrumUserControl.Controls.Clear();
            this.FrequencySpectrumUserControl.Controls.Add(m_UI_FrequencySpectrum);
            this.m_UI_FrequencySpectrum.Dock = DockStyle.Fill;
        }
예제 #3
0
        public Form1()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;
            WriteXml();
            DataAlgorithm.Filter.LoadFilterPara();

            this.barToggleSwitchItem3.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.BarToggleSwitchItem3_CheckedChanged);
            this.barToggleSwitchItem2.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.BarToggleSwitchItem2_CheckedChanged);
            this.barToggleSwitchItem4.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.BarToggleSwitchItem4_CheckedChanged);

            #region 网络初始化
            try
            {
                m_DataProcessing = new DataProcessing();                    //初始化数据处理类
                m_FileProcessing = new FileProcessing(m_DataProcessing, this);
                m_FileProcessing.udpRecvInit(m_NetLocalIP, m_NetLocalPort); //进数据处理类
            }
            catch (Exception ex)
            {
            }
            #endregion

            #region 委托传递数据
            m_FileProcessing.udpRecvNB.passTime  += new udpRecv.PassTime(udpRecv_passTime);                                                                //时标信息的委托
            m_FileProcessing.udpRecvFFT.passTime += new udpRecv.PassTime(udpRecv_passTime);                                                                //时标信息的委托
            m_DataProcessing.DataFrequencySpectrum.passPowerAndFreq += new DataFrequencySpectrum.PassPowerAndFreq(DataFrequencySpectrum_passPowerAndFreq); //频域数据的委托
            m_DataProcessing.DataIQWaveform.passIQData += new DataIQWaveform.PassIQData(DataIQWaveform_passIQData);                                        //IQ数据的委托
            #endregion

            #region UI
            FrequencySpectrumUserControl = CreateUserControl("FrequencySpectrum");
            IQWaveformUserControl        = CreateUserControl("IQWaveform");
            WaterfallPlotUserControl     = CreateUserControl("WaterfallPlot");

            #region UI_FrequencySpectrum
            m_UI_FrequencySpectrum = new UI_FrequencySpectrum();
            this.FrequencySpectrumUserControl.Controls.Clear();
            this.FrequencySpectrumUserControl.Controls.Add(m_UI_FrequencySpectrum);
            this.m_UI_FrequencySpectrum.Dock = DockStyle.Fill;
            #endregion

            //accordionControl.SelectedElement = FrequencySpectrumAccordionControlElement;

            #endregion
        }