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 }