using System.Windows.Controls; using MECF.Framework.Simulator.Core.Commons; using EfemDualSimulator.Devices; namespace EfemDualSimulator.Views { /// /// SimuEdwardsPumpView.xaml 的交互逻辑 /// public partial class SimuEdwardsPumpPMBView : UserControl { public SimuEdwardsPumpPMBView(string param) { InitializeComponent(); this.DataContext = new MockEdwardsPumpViewModelPMB(param); } } class MockEdwardsPumpViewModelPMB : SerialPortDeviceViewModel { public string Title { get { return "Edwards pump PMB simulator"; } } public MockEdwardsPumpViewModelPMB(string param) : base("EdwardsPumpPMBSimulator") { Init(new EdwardsPumpMockPMB(param)); } } }