1234567891011121314151617181920212223242526272829303132 |
- using System.Windows.Controls;
- using MECF.Framework.Simulator.Core.Commons;
- using Venus_Simulator.Devices;
- namespace Venus_Simulator.Views
- {
- /// <summary>
- /// SimuSMCChillerPMAView.xaml 的交互逻辑
- /// </summary>
- public partial class SimuSMCChillerPMAView : UserControl
- {
- public SimuSMCChillerPMAView()
- {
- InitializeComponent();
- this.DataContext = new MockSMCChillerViewModelPMA();
- }
- }
- class MockSMCChillerViewModelPMA : SerialPortDeviceViewModel
- {
- public string Title
- {
- get { return "SMC Chiller PMA simulator"; }
- }
- public MockSMCChillerViewModelPMA() : base("SMCChillerPMASimulator")
- {
- Init(new SMCChillerMock("COM43"));
- }
- }
- }
|