SimuAdTecGeneratorPMBView.xaml.cs 845 B

12345678910111213141516171819202122232425262728293031
  1. using System.Windows.Controls;
  2. using MECF.Framework.Simulator.Core.Commons;
  3. using EfemDualSimulator.Devices;
  4. namespace EfemDualSimulator.Views
  5. {
  6. /// <summary>
  7. /// Interaction logic for SimuAdTecGeneratorView.xaml
  8. /// </summary>
  9. public partial class SimuAdTecGeneratorPMBView : UserControl
  10. {
  11. public SimuAdTecGeneratorPMBView(string param)
  12. {
  13. InitializeComponent();
  14. this.DataContext = new MockAdTecGeneratorViewModelPMB(param);
  15. }
  16. }
  17. class MockAdTecGeneratorViewModelPMB : SerialPortDeviceViewModel
  18. {
  19. public string Title
  20. {
  21. get { return "AdTec RFG PMB simulator"; }
  22. }
  23. public MockAdTecGeneratorViewModelPMB(string param) : base("AdTecPMBRFG")
  24. {
  25. Init(new AdTecGeneratorMockPMB(param));
  26. }
  27. }
  28. }