BeamMeasurementSettings.xaml.cs 3.2 KB

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