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