BeamMeasurementSettings.xaml.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #pragma warning disable CA1822
  2. namespace OINA.Extender.WPF.Testharness
  3. {
  4. using System.Globalization;
  5. using System.Windows;
  6. using OINA.Extender.Acquisition;
  7. /// <summary>
  8. /// Interaction logic for BeamMeasurementSettings.xaml
  9. /// </summary>
  10. public partial class BeamMeasurementSettings : Window
  11. {
  12. /// <summary>
  13. /// Gets or sets the ProcessTime of QuantCalibrationSettings.EdSettings.
  14. /// </summary>
  15. /// <value>
  16. /// The value of Process Time.
  17. /// </value>
  18. public int ProcessTime
  19. {
  20. get
  21. {
  22. return OIHelper.QuantCalibrationSettings.EdSettings.ProcessTime;
  23. }
  24. set
  25. {
  26. OIHelper.QuantCalibrationSettings.EdSettings.ProcessTime = value;
  27. }
  28. }
  29. /// <summary>
  30. /// Gets or sets the NumberOfChannels of QuantCalibrationSettings.EdSettings.
  31. /// </summary>
  32. /// <value>
  33. /// The value of Number Of Channels.
  34. /// </value>
  35. public int NumberOfChannels
  36. {
  37. get
  38. {
  39. return OIHelper.QuantCalibrationSettings.EdSettings.NumberOfChannels;
  40. }
  41. set
  42. {
  43. OIHelper.QuantCalibrationSettings.EdSettings.NumberOfChannels = value;
  44. }
  45. }
  46. /// <summary>
  47. /// Gets or sets the EnergyRange of QuantCalibrationSettings.EdSettings.
  48. /// </summary>
  49. /// <value>
  50. /// The value of Energy Range.
  51. /// </value>
  52. public int EnergyRange
  53. {
  54. get
  55. {
  56. return OIHelper.QuantCalibrationSettings.EdSettings.EnergyRange;
  57. }
  58. set
  59. {
  60. OIHelper.QuantCalibrationSettings.EdSettings.EnergyRange = value;
  61. }
  62. }
  63. /// <summary>
  64. /// Gets or sets the TotalCountsInSpectrum of QuantCalibrationSettings.
  65. /// </summary>
  66. /// <value>
  67. /// The value of TotalCountsInSpectrum.
  68. /// </value>
  69. public int TotalCountsInSpectrum
  70. {
  71. get
  72. {
  73. return OIHelper.QuantCalibrationSettings.TotalCountsInSpectrum;
  74. }
  75. set
  76. {
  77. OIHelper.QuantCalibrationSettings.TotalCountsInSpectrum = value;
  78. }
  79. }
  80. /// <summary>
  81. /// BeamMesurementSettings constructor
  82. /// </summary>
  83. public BeamMeasurementSettings()
  84. {
  85. this.InitializeComponent();
  86. this.ProcesstimeCombobox.ItemsSource = OIHelper.EdSpectrumSettings.EdCapabilities.AllowedProcessTimes;
  87. this.NumberofchannelsCombobox.ItemsSource = OIHelper.EdSpectrumSettings.EdCapabilities.AllowedNumberOfChannels;
  88. this.EnergyRangeCombobox.ItemsSource = OIHelper.EdSpectrumSettings.EdCapabilities.AllowedEnergyRanges;
  89. this.DataContext = this;
  90. }
  91. /// <summary>
  92. /// OKButton_OnClick
  93. /// </summary>
  94. /// <param name="sender">sender</param>
  95. /// <param name="e">e</param>
  96. private void OKButton_OnClick(object sender, RoutedEventArgs e)
  97. {
  98. this.Close();
  99. }
  100. }
  101. }