HongHuVPA.xaml.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using MECF.Framework.Simulator.Core.Commons;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. using Venus_Simulator.Devices;
  17. namespace Venus_Simulator.Views
  18. {
  19. /// <summary>
  20. /// HongHuVPA.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class HongHuVPA : UserControl
  23. {
  24. public HongHuVPA()
  25. {
  26. InitializeComponent();
  27. DataContext = new HongHuVPAViewModel();
  28. }
  29. }
  30. class HongHuVPAViewModel : SerialPortDeviceViewModel
  31. {
  32. public string Title
  33. {
  34. get { return "VPA simulator"; }
  35. }
  36. public HongHuVPAViewModel() : base("VPA")
  37. {
  38. Init(new VPASimulator());
  39. }
  40. }
  41. }