public SpecMeasureControlPage(SpecComOne page)
 {
     InitializeComponent();
     if (page != null)
     {
         this.specPage = page;
     }
     specDataSave = SpecDataSave.Instance;
     specPage.SetWave(3, pixelNumber, 185);
     FolderPath.Text = specDataSave.SpecDataSavePath;
 }
 public MainWindow()
 {
     InitializeComponent();
     DataForward.Instance.StartService();
     InitBottomInfo();
     measureMgr   = MeasureMgrImpl.Instance;
     specDataSave = SpecDataSave.Instance;
     InitPage();
     VocsCollectBtn_Click(null, null);
     PassPortImpl.GetInstance().PassValueEvent += new PassPortDelegate(ReceievedValues);
     DataForward.Instance.ReadDeviceNo        += new DataForwardDelegate(SetDeviceNo);
     ExceptionUtil.Instance.LogEvent          += new ExceptionDelegate(ShowLogMsg);
     ExceptionUtil.Instance.ExceptionEvent    += new ExceptionDelegate(ShowExceptionMsg);
     ExceptionUtil.Instance.ShowLoadingAction += ShowLoading;
 }