SimuAIRSYSChillerPMBView.xaml.cs 822 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Windows.Controls;
  2. using MECF.Framework.Simulator.Core.Commons;
  3. using Venus_Simulator.Devices;
  4. namespace Venus_Simulator.Views
  5. {
  6. /// <summary>
  7. /// SimuAIRSYSChillerPMBView.xaml 的交互逻辑
  8. /// </summary>
  9. public partial class SimuAIRSYSChillerPMBView : UserControl
  10. {
  11. public SimuAIRSYSChillerPMBView()
  12. {
  13. InitializeComponent();
  14. this.DataContext = new MockAIRSYSChillerViewModelPMB();
  15. }
  16. }
  17. class MockAIRSYSChillerViewModelPMB : SerialPortDeviceViewModel
  18. {
  19. public string Title
  20. {
  21. get { return "AIRSYS Chiller PMB simulator"; }
  22. }
  23. public MockAIRSYSChillerViewModelPMB() : base("AIRSYSCh illerPMBSimulator")
  24. {
  25. Init(new AIRSYSChillerMock("COM72"));
  26. }
  27. }
  28. }