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