using System.Windows.Controls; using MECF.Framework.Simulator.Core.Commons; using VirgoSimulator.Devices; namespace VirgoSimulator.Views { /// /// SimuSMCChillerPMBView.xaml 的交互逻辑 /// public partial class SimuSMCChillerPMBView : UserControl { public SimuSMCChillerPMBView() { InitializeComponent(); this.DataContext = new MockSMCChillerViewModelPMB(); } } class MockSMCChillerViewModelPMB : SerialPortDeviceViewModel { public string Title { get { return "SMC Chiller PMB simulator"; } } public MockSMCChillerViewModelPMB() : base("SkyPumpPMBSimulator") { Init(new SMCChillerMock("COM45")); } } }