LinmotView.xaml.cs 727 B

12345678910111213141516171819202122232425262728293031
  1. using System.Windows.Controls;
  2. using MECF.Framework.Simulator.Core.Commons;
  3. using CyberX8_Simulator.Devices;
  4. namespace CyberX8_Simulator.Views
  5. {
  6. /// <summary>
  7. /// SimuTemperatureControllerView.xaml 的交互逻辑
  8. /// </summary>
  9. public partial class LinmotView : UserControl
  10. {
  11. public LinmotView()
  12. {
  13. InitializeComponent();
  14. }
  15. }
  16. class LinmotViewModel : SerialPortDeviceViewModel
  17. {
  18. public string Title
  19. {
  20. get { return "Linmot simulator"; }
  21. }
  22. public LinmotViewModel(string port) : base("LinmotSimulator")
  23. {
  24. Init(new LinmotSerialPortDevice(port));
  25. }
  26. }
  27. }