internal SpctrumMonitorViewModel() { mInstr = new SpectrumMonitorInstrument(Configuration.Simulation, Configuration.DriverOption); mRegisterControlViewModel = new RegisterControlViewModel(this); mIndicatorViewModel = new IndicatorViewModel(this); mFunctionViewModel = new FunctionViewModel(this); mMenuViewModel = new MenuViewModel(this); mSettingPanelViewModel = new SettingPanelViewModel(this); mSpectrumAreaViewModel = new SpectrumAreaViewModel(this); mSpectrogramAreaViewModel = new SpectrogramAreaViewModel(this); mDpxDisplayViewModel = new DpxDisplayViewModel(this); mSignalTableAreaViewModel = new ViewModel.SignalTableAreaViewModel(this); mErrorMessageViewModel = new ErrorMessageViewModel(this); mDeviceInfoViewModel = new DeviceInfoViewModel(this); }
public SpectrumAreaViewModel(SpctrumMonitorViewModel mainviewmodel) { mInstr = mainviewmodel.Instrument as SpectrumMonitorInstrument; mMainViewModel = mainviewmodel; for (int i = 0; i < MARKER_NUM; i++) { Markers[i] = new Marker(mainviewmodel); Markers[i].Index = i; mMarkerItems.Add("Marker" + (i + 1).ToString()); } mTriggerMaskData.MaskDataList.Add(new MaskData(StartFrequency, TopLevel - 30)); mTriggerMaskData.MaskDataList.Add(new MaskData(Center, TopLevel - 30)); mTriggerMaskData.MaskDataList.Add(new MaskData(StopFrequency, TopLevel - 30)); }
public DpxDisplayViewModel(SpctrumMonitorViewModel mainviewmodel) { mMainViewModel = mainviewmodel; mInstr = mainviewmodel.Instrument as SpectrumMonitorInstrument; }