CustomCalibration.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using MECF.Framework.UI.Client.CenterViews.Maitenances.CalibrationTable;
  7. namespace EfemDualUI.Views.PMs
  8. {
  9. public class CustomCalibration : ICalibrationTableViewModelParameter
  10. {
  11. public List<CalibrationTableItem> Items
  12. {
  13. get
  14. {
  15. return _items;
  16. }
  17. set
  18. {
  19. _items = value;
  20. }
  21. }
  22. private List<CalibrationTableItem> _items = new List<CalibrationTableItem>();
  23. public CustomCalibration(string module)
  24. {
  25. _items.Add(new CalibrationTableItem()
  26. {
  27. DisplayName = "Source RF 1",
  28. ItemEnableScName = $"{module}.Rf1.EnableCalibration",
  29. ItemTableScName = $"{module}.Rf1.CalibrationTable",
  30. });
  31. _items.Add(new CalibrationTableItem()
  32. {
  33. DisplayName = "Bias RF 1",
  34. ItemEnableScName = $"{module}.BiasRf1.EnableCalibration",
  35. ItemTableScName = $"{module}.BiasRf1.CalibrationTable",
  36. });
  37. _items.Add(new CalibrationTableItem()
  38. {
  39. DisplayName = "Source RF 2",
  40. ItemEnableScName = $"{module}.Rf2.EnableCalibration",
  41. ItemTableScName = $"{module}.Rf2.CalibrationTable",
  42. });
  43. _items.Add(new CalibrationTableItem()
  44. {
  45. DisplayName = "Bias RF 2",
  46. ItemEnableScName = $"{module}.BiasRf2.EnableCalibration",
  47. ItemTableScName = $"{module}.BiasRf2.CalibrationTable",
  48. });
  49. }
  50. }
  51. }