123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #pragma warning disable CA1822
- namespace OINA.Extender.WPF.Testharness
- {
- using System.Globalization;
- using System.Windows;
- using OINA.Extender.Acquisition;
- /// <summary>
- /// Interaction logic for BeamMeasurementSettings.xaml
- /// </summary>
- public partial class BeamMeasurementSettings : Window
- {
- /// <summary>
- /// Gets or sets the ProcessTime of QuantCalibrationSettings.EdSettings.
- /// </summary>
- /// <value>
- /// The value of Process Time.
- /// </value>
- public int ProcessTime
- {
- get
- {
- return OIHelper.QuantCalibrationSettings.EdSettings.ProcessTime;
- }
- set
- {
- OIHelper.QuantCalibrationSettings.EdSettings.ProcessTime = value;
- }
- }
- /// <summary>
- /// Gets or sets the NumberOfChannels of QuantCalibrationSettings.EdSettings.
- /// </summary>
- /// <value>
- /// The value of Number Of Channels.
- /// </value>
- public int NumberOfChannels
- {
- get
- {
- return OIHelper.QuantCalibrationSettings.EdSettings.NumberOfChannels;
- }
- set
- {
- OIHelper.QuantCalibrationSettings.EdSettings.NumberOfChannels = value;
- }
- }
- /// <summary>
- /// Gets or sets the EnergyRange of QuantCalibrationSettings.EdSettings.
- /// </summary>
- /// <value>
- /// The value of Energy Range.
- /// </value>
- public int EnergyRange
- {
- get
- {
- return OIHelper.QuantCalibrationSettings.EdSettings.EnergyRange;
- }
- set
- {
- OIHelper.QuantCalibrationSettings.EdSettings.EnergyRange = value;
- }
- }
- /// <summary>
- /// Gets or sets the TotalCountsInSpectrum of QuantCalibrationSettings.
- /// </summary>
- /// <value>
- /// The value of TotalCountsInSpectrum.
- /// </value>
- public int TotalCountsInSpectrum
- {
- get
- {
- return OIHelper.QuantCalibrationSettings.TotalCountsInSpectrum;
- }
- set
- {
- OIHelper.QuantCalibrationSettings.TotalCountsInSpectrum = value;
- }
- }
- /// <summary>
- /// BeamMesurementSettings constructor
- /// </summary>
- public BeamMeasurementSettings()
- {
- this.InitializeComponent();
- this.ProcesstimeCombobox.ItemsSource = OIHelper.EdSpectrumSettings.EdCapabilities.AllowedProcessTimes;
- this.NumberofchannelsCombobox.ItemsSource = OIHelper.EdSpectrumSettings.EdCapabilities.AllowedNumberOfChannels;
- this.EnergyRangeCombobox.ItemsSource = OIHelper.EdSpectrumSettings.EdCapabilities.AllowedEnergyRanges;
- this.DataContext = this;
- }
- /// <summary>
- /// OKButton_OnClick
- /// </summary>
- /// <param name="sender">sender</param>
- /// <param name="e">e</param>
- private void OKButton_OnClick(object sender, RoutedEventArgs e)
- {
- this.Close();
- }
- }
- }
|