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