1234567891011121314151617181920212223242526272829303132 |
- using System.Windows.Controls;
- using MECF.Framework.Simulator.Core.Commons;
- using EfemDualSimulator.Devices;
- namespace EfemDualSimulator.Views
- {
- /// <summary>
- /// SimuMicrowaveGeneratorPMBView.xaml 的交互逻辑
- /// </summary>
- public partial class SimuMicrowaveGeneratorPMBView : UserControl
- {
- public SimuMicrowaveGeneratorPMBView(string param)
- {
- InitializeComponent();
- this.DataContext = new MockMicrowaveGeneratorViewModelPMB(param);
- }
- }
- class MockMicrowaveGeneratorViewModelPMB : SerialPortDeviceViewModel
- {
- public string Title
- {
- get { return "Microwave RFG PMB simulator"; }
- }
- public MockMicrowaveGeneratorViewModelPMB(string param) : base("MicrowavePMBRFG")
- {
- Init(new MicrowaveGeneratorMockPMA(param));
- }
- }
- }
|