using System.Windows.Controls; using MECF.Framework.Simulator.Core.Commons; using EfemDualSimulator.Devices; namespace EfemDualSimulator.Views { /// /// SimuMicrowaveGeneratorPMBView.xaml 的交互逻辑 /// 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)); } } }