CustomCalibration.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace VirgoUI.Client.Models.PMs
  7. {
  8. public class CustomCalibration : ICalibrationTableViewModelParameter
  9. {
  10. public List<CalibrationTableItem> Items
  11. {
  12. get
  13. {
  14. return _items;
  15. }
  16. set
  17. {
  18. _items = value;
  19. }
  20. }
  21. private List<CalibrationTableItem> _items = new List<CalibrationTableItem>();
  22. public CustomCalibration(string module)
  23. {
  24. _items.Add(new CalibrationTableItem()
  25. {
  26. DisplayName = "Source RF",
  27. ItemEnableScName = $"{module}.Rf.EnableCalibration",
  28. ItemTableScName = $"{module}.Rf.CalibrationTable",
  29. });
  30. _items.Add(new CalibrationTableItem()
  31. {
  32. DisplayName = "Bias RF",
  33. ItemEnableScName = $"{module}.BiasRf.EnableCalibration",
  34. ItemTableScName = $"{module}.BiasRf.CalibrationTable",
  35. });
  36. }
  37. }
  38. }