public IDDAcquireInitSrc() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.initial; this.Text += " for detector " + ah.det.Id.DetectorName; np = Integ.GetCurrentNormParams(ah.det); // a copy // Populate the UI fields with values from the local AcquireParameters object this.QCTestsCheckBox.Checked = ah.ap.qc_tests; this.PrintResultsCheckBox.Checked = ah.ap.print; this.CommentAtEndCheckBox.Checked = ah.ap.ending_comment; this.NumCyclesTextBox.Text = Format.Rend(ah.ap.num_runs); this.CommentTextBox.Text = ah.ap.comment; this.CountTimeTextBox.Text = Format.Rend(ah.ap.run_count_time); this.SourceIdTextBox.Text = ah.ap.item_id; this.MeasPrecisionTextBox.Text = ah.ap.meas_precision.ToString("F2"); this.MinNumCyclesTextBox.Text = Format.Rend(ah.ap.min_num_runs); this.MaxNumCyclesTextBox.Text = Format.Rend(ah.ap.max_num_runs); this.UseAddASourceCheckBox.Checked = np.biasTestUseAddasrc; this.DistanceToMoveTextBox.Text = np.biasTestAddasrcPosition.ToString("F1"); this.SourceIdTextBox.Text = np.sourceId; DistanceToMoveTextBox.Enabled = np.biasTestUseAddasrc; switch (np.biasMode) { case NormTest.AmLiSingles: AmLiNormRadioButton.Checked = true; break; case NormTest.Cf252Doubles: Cf252DblsNormRadioButton.Checked = true; break; case NormTest.Cf252Singles: Cf252SinglesNormRadioButton.Checked = true; break; case NormTest.Collar: break; } this.DataSourceComboBox.Items.Clear(); foreach (ConstructedSource cs in System.Enum.GetValues(typeof(ConstructedSource))) { if (cs.AcquireChoices() || cs.LMFiles(ah.det.Id.SRType)) DataSourceComboBox.Items.Add(cs.HappyFunName()); } if (ah.ap.acquire_type == AcquireConvergence.CycleCount) { this.UseNumCyclesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.DoublesPrecision) { this.UseDoublesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.TriplesPrecision) { this.UseTriplesRadioButton.Checked = true; } DataSourceComboBox.SelectedItem = ah.ap.data_src.HappyFunName(); }
public IDDAcquireCalibration() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.calibration; Text += " for detector " + ah.det.Id.DetectorName; NumCyclesTextBox.ToValidate = NumericTextBox.ValidateType.Integer; NumCyclesTextBox.NumberFormat = NumericTextBox.Formatter.NONE; CountTimeTextBox.ToValidate = NumericTextBox.ValidateType.Integer; MeasPrecisionTextBox.ToValidate = NumericTextBox.ValidateType.Float; MeasPrecisionTextBox.NumberFormat = NumericTextBox.Formatter.F2; MinNumCyclesTextBox.ToValidate = NumericTextBox.ValidateType.Integer; MinNumCyclesTextBox.NumberFormat = NumericTextBox.Formatter.NONE; MaxNumCyclesTextBox.ToValidate = NumericTextBox.ValidateType.Integer; MinNumCyclesTextBox.NumberFormat = NumericTextBox.Formatter.NONE; LoadLists(); FieldFiller(); Pu240eCoeffBtn.Enabled = !string.IsNullOrEmpty(NC.App.Config.VersionBranchString); }
public IDDAcquireHoldup() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.holdup; this.Text += " for detector " + ah.det.Id.DetectorName; // Populate the UI fields with values from the local AcquireParameters object this.QCTestsCheckBox.Checked = ah.ap.qc_tests; this.PrintResultsCheckBox.Checked = ah.ap.print; this.CommentAtEndCheckBox.Checked = ah.ap.ending_comment; this.NumCyclesTextBox.Text = Format.Rend(ah.ap.num_runs); this.CommentTextBox.Text = ah.ap.comment; this.CountTimeTextBox.Text = Format.Rend(ah.ap.run_count_time); this.DeclaredMassTextBox.Text = Format.Rend(ah.ap.mass); this.GloveboxIdComboBox.Items.Clear(); GloveboxIdComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in NC.App.DB.InvChangeCodes.GetList()) { this.GloveboxIdComboBox.Items.Add(desc.Name); } foreach (INCCDB.Descriptor desc in NC.App.DB.MBAs.GetList()) { MBAComboBox.Items.Add(desc.Name); } this.ItemIdComboBox.Items.Clear(); foreach (ItemId id in NC.App.DB.ItemIds.GetList()) { ItemIdComboBox.Items.Add(id.item); } this.StratumIdComboBox.Items.Clear(); //foreach (INCCDB.StratumDescriptor desc in NC.App.DB.StrataList(ah.det)) //{ // StratumIdComboBox.Items.Add(desc.Desc); //} foreach (INCCDB.Descriptor desc in NC.App.DB.Stratums.GetList()) { StratumIdComboBox.Items.Add(desc.Desc); } this.MaterialTypeComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in NC.App.DB.Materials.GetList()) { MaterialTypeComboBox.Items.Add(desc.Name); } this.DataSourceComboBox.Items.Clear(); foreach (ConstructedSource cs in System.Enum.GetValues(typeof(ConstructedSource))) { if (cs.AcquireChoices() || cs.LMFiles(ah.det.Id.SRType)) { DataSourceComboBox.Items.Add(cs.HappyFunName()); } } DataSourceComboBox.SelectedItem = ah.ap.data_src.HappyFunName(); }
public IDDAcquireHoldup() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.holdup; this.Text += " for detector " + ah.det.Id.DetectorName; // Populate the UI fields with values from the local AcquireParameters object this.QCTestsCheckBox.Checked = ah.ap.qc_tests; this.PrintResultsCheckBox.Checked = ah.ap.print; this.CommentAtEndCheckBox.Checked = ah.ap.ending_comment; this.NumCyclesTextBox.Text = Format.Rend(ah.ap.num_runs); this.CommentTextBox.Text = ah.ap.comment; this.CountTimeTextBox.Text = Format.Rend(ah.ap.run_count_time); this.DeclaredMassTextBox.Text = Format.Rend(ah.ap.mass); this.GloveboxIdComboBox.Items.Clear(); GloveboxIdComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in NC.App.DB.InvChangeCodes.GetList()) { this.GloveboxIdComboBox.Items.Add(desc.Name); } foreach (INCCDB.Descriptor desc in NC.App.DB.MBAs.GetList()) { MBAComboBox.Items.Add(desc.Name); } this.ItemIdComboBox.Items.Clear(); foreach (ItemId id in NC.App.DB.ItemIds.GetList()) { ItemIdComboBox.Items.Add(id.item); } this.StratumIdComboBox.Items.Clear(); //foreach (INCCDB.StratumDescriptor desc in NC.App.DB.StrataList(ah.det)) //{ // StratumIdComboBox.Items.Add(desc.Desc); //} foreach (INCCDB.Descriptor desc in NC.App.DB.Stratums.GetList()) { StratumIdComboBox.Items.Add(desc.Desc); } this.MaterialTypeComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in NC.App.DB.Materials.GetList()) { MaterialTypeComboBox.Items.Add(desc.Name); } this.DataSourceComboBox.Items.Clear(); foreach (ConstructedSource cs in System.Enum.GetValues(typeof(ConstructedSource))) { if (cs.AcquireChoices() || cs.LMFiles(ah.det.Id.SRType)) DataSourceComboBox.Items.Add(cs.HappyFunName()); } DataSourceComboBox.SelectedItem = ah.ap.data_src.HappyFunName(); }
public ChooseBackgroundType() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.background; this.Text = "Detector Configuration for detector " + ah.det.Id.DetectorName; PassiveBackgroundButton.Checked = true; ah.ap.well_config = WellConfiguration.Passive; }
public IDDAcquireAssay() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.verification; this.Text += " for detector " + ah.det.Id.DetectorName; FieldFiller(); //this.SetDesktopLocation(this.Parent.DisplayRectangle.X + this.Parent.DisplayRectangle.Width + 10, this.Parent.DisplayRectangle.Y); ToolTip mustSelect = new ToolTip(); mustSelect.SetToolTip(StratumIdComboBox, "You must select an existing stratum."); mustSelect.SetToolTip(MaterialTypeComboBox, "You must select an existing material type."); }
public IDDAcquireAssay() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.verification; Text += " for detector " + ah.det.Id.DetectorName; FieldFiller(); EnableTermControls(); ToolTip mustSelect = new ToolTip(); mustSelect.SetToolTip(StratumIdComboBox, "You must select an existing stratum."); mustSelect.SetToolTip(MaterialTypeComboBox, "You must select an existing material type."); Pu240eCoeffBtn.Enabled = !string.IsNullOrEmpty(NC.App.Config.VersionBranchString); }
public IDDReanalysisAssay(Measurement m, Detector det) { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(m.AcquireState, det); ah.mo = AssaySelector.MeasurementOption.verification; Text = "Select measurement for detector " + ah.det.Id.DetectorName; toolTip1.SetToolTip(StratumIdComboBox, "You must select an existing stratum."); toolTip1.SetToolTip(MaterialTypeComboBox, "You must select an existing material type."); toolTip1.SetToolTip(UseCurrentCalibCheckBox, "x = use current calibration parameters for the selected material type.\r\nblank = use calibration parameters from the original measurement."); normmodified = false; meas = m; norm = new VTuple(meas.Norm.currNormalizationConstant); // fill from m FieldFiller(); }
public IDDAcquireBias() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.normalization; Text += " for detector " + ah.det.Id.DetectorName; np = Integ.GetCurrentNormParams(ah.det); // a copy // Populate the UI fields with values from the local AcquireParameters object QCTestsCheckBox.Checked = ah.ap.qc_tests; PrintResultsCheckBox.Checked = ah.ap.print; CommentAtEndCheckBox.Checked = ah.ap.ending_comment; NumCyclesTextBox.Text = Format.Rend(ah.ap.num_runs); CommentTextBox.Text = ah.ap.comment; CountTimeTextBox.Text = Format.Rend(ah.ap.run_count_time); MeasPrecisionTextBox.Text = ah.ap.meas_precision.ToString("F2"); MinNumCyclesTextBox.Text = Format.Rend(ah.ap.min_num_runs); MaxNumCyclesTextBox.Text = Format.Rend(ah.ap.max_num_runs); SourceId.Text = np.sourceId; DataSourceComboBox.Items.Clear(); foreach (ConstructedSource cs in Enum.GetValues(typeof(ConstructedSource))) { if (cs.AcquireChoices() || cs.LMFiles(ah.det.Id.SRType)) { DataSourceComboBox.Items.Add(cs.NameForViewing(ah.det.Id.SRType)); } } if (ah.ap.acquire_type == AcquireConvergence.CycleCount) { UseNumCyclesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.DoublesPrecision) { UseDoublesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.TriplesPrecision) { UseTriplesRadioButton.Checked = true; } DataSourceComboBox.SelectedItem = ah.ap.data_src.NameForViewing(ah.det.Id.SRType); SetHelp(); }
public IDDCollarAcquire(NormParameters npp) { InitializeComponent(); ap = Integ.GetCurrentAcquireParams(); col = new INCCAnalysisParams.collar_combined_rec(); ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.verification; Text += " for detector " + ah.det.Id.DetectorName; //ableTermControls(); Detector d= new Detector(); Integ.GetCurrentAcquireDetectorPair(ref ap, ref d); npp.CopyTo(norm); Integ.BuildMeasurement(ap, d, AssaySelector.MeasurementOption.verification); am = Integ.GetMethodSelections(ah.ap); // Main window checks if Collar is defined for material type. No check needed here. FillForm(); }
public IDDAcquireRatesOnly() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.rates; this.Text += " for detector " + ah.det.Id.DetectorName; // Populate the UI fields with values from the local AcquireParameters object this.QCTestsCheckbox.Checked = ah.ap.qc_tests; this.PrintResultsCheckBox.Checked = ah.ap.print; this.CommentAtEndCheckBox.Checked = ah.ap.ending_comment; this.NumCyclesTextBox.Text = Format.Rend(ah.ap.num_runs); this.CommentTextBox.Text = ah.ap.comment; this.CountTimeTextBox.Text = Format.Rend(ah.ap.run_count_time); this.ItemIdTextBox.Text = ah.ap.item_id; this.MeasPrecisionTextBox.Text = ah.ap.meas_precision.ToString("F2"); this.MinNumCyclesTextBox.Text = Format.Rend(ah.ap.min_num_runs); this.MaxNumCyclesTextBox.Text = Format.Rend(ah.ap.max_num_runs); this.DataSourceComboBox.Items.Clear(); foreach (ConstructedSource cs in System.Enum.GetValues(typeof(ConstructedSource))) { if (cs.AcquireChoices() || cs.LMFiles(ah.det.Id.SRType)) { DataSourceComboBox.Items.Add(cs.HappyFunName()); } } if (ah.ap.acquire_type == AcquireConvergence.CycleCount) { this.UseNumCyclesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.DoublesPrecision) { this.UseDoublesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.TriplesPrecision) { this.UseTriplesRadioButton.Checked = true; } DataSourceComboBox.SelectedItem = ah.ap.data_src.HappyFunName(); }
public IDDAcquireBias() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.normalization; Text += " for detector " + ah.det.Id.DetectorName; np = Integ.GetCurrentNormParams(ah.det); // a copy // Populate the UI fields with values from the local AcquireParameters object QCTestsCheckBox.Checked = ah.ap.qc_tests; PrintResultsCheckBox.Checked = ah.ap.print; CommentAtEndCheckBox.Checked = ah.ap.ending_comment; NumCyclesTextBox.Text = Format.Rend(ah.ap.num_runs); CommentTextBox.Text = ah.ap.comment; CountTimeTextBox.Text = Format.Rend(ah.ap.run_count_time); MeasPrecisionTextBox.Text = ah.ap.meas_precision.ToString("F2"); MinNumCyclesTextBox.Text = Format.Rend(ah.ap.min_num_runs); MaxNumCyclesTextBox.Text = Format.Rend(ah.ap.max_num_runs); SourceId.Text = np.sourceId; DataSourceComboBox.Items.Clear(); foreach (ConstructedSource cs in Enum.GetValues(typeof(ConstructedSource))) { if (cs.AcquireChoices() || cs.LMFiles(ah.det.Id.SRType)) DataSourceComboBox.Items.Add(cs.NameForViewing(ah.det.Id.SRType)); } if (ah.ap.acquire_type == AcquireConvergence.CycleCount) { UseNumCyclesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.DoublesPrecision) { UseDoublesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.TriplesPrecision) { UseTriplesRadioButton.Checked = true; } DataSourceComboBox.SelectedItem = ah.ap.data_src.NameForViewing(ah.det.Id.SRType); SetHelp(); }
public IDDAcquireRatesOnly() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.rates; this.Text += " for detector " + ah.det.Id.DetectorName; // Populate the UI fields with values from the local AcquireParameters object this.QCTestsCheckbox.Checked = ah.ap.qc_tests; this.PrintResultsCheckBox.Checked = ah.ap.print; this.CommentAtEndCheckBox.Checked = ah.ap.ending_comment; this.NumCyclesTextBox.Text = Format.Rend(ah.ap.num_runs); this.CommentTextBox.Text = ah.ap.comment; this.CountTimeTextBox.Text = Format.Rend(ah.ap.run_count_time); this.ItemIdTextBox.Text = ah.ap.item_id; this.MeasPrecisionTextBox.Text = ah.ap.meas_precision.ToString("F2"); this.MinNumCyclesTextBox.Text = Format.Rend(ah.ap.min_num_runs); this.MaxNumCyclesTextBox.Text = Format.Rend(ah.ap.max_num_runs); this.DataSourceComboBox.Items.Clear(); foreach (ConstructedSource cs in System.Enum.GetValues(typeof(ConstructedSource))) { if (cs.AcquireChoices() || cs.LMFiles(ah.det.Id.SRType)) DataSourceComboBox.Items.Add(cs.HappyFunName()); } if (ah.ap.acquire_type == AcquireConvergence.CycleCount) { this.UseNumCyclesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.DoublesPrecision) { this.UseDoublesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.TriplesPrecision) { this.UseTriplesRadioButton.Checked = true; } DataSourceComboBox.SelectedItem = ah.ap.data_src.HappyFunName(); }
public IDDAcquireInitSrc() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.initial; this.Text += " for detector " + ah.det.Id.DetectorName; np = Integ.GetCurrentNormParams(ah.det); // a copy // Populate the UI fields with values from the local AcquireParameters object this.QCTestsCheckBox.Checked = ah.ap.qc_tests; this.PrintResultsCheckBox.Checked = ah.ap.print; this.CommentAtEndCheckBox.Checked = ah.ap.ending_comment; this.NumCyclesTextBox.Text = Format.Rend(ah.ap.num_runs); this.CommentTextBox.Text = ah.ap.comment; this.CountTimeTextBox.Text = Format.Rend(ah.ap.run_count_time); this.SourceIdTextBox.Text = ah.ap.item_id; this.MeasPrecisionTextBox.Text = ah.ap.meas_precision.ToString("F2"); this.MinNumCyclesTextBox.Text = Format.Rend(ah.ap.min_num_runs); this.MaxNumCyclesTextBox.Text = Format.Rend(ah.ap.max_num_runs); this.UseAddASourceCheckBox.Checked = np.biasTestUseAddasrc; this.DistanceToMoveTextBox.Text = np.biasTestAddasrcPosition.ToString("F1"); this.SourceIdTextBox.Text = np.sourceId; DistanceToMoveTextBox.Enabled = np.biasTestUseAddasrc; switch (np.biasMode) { case NormTest.AmLiSingles: AmLiNormRadioButton.Checked = true; break; case NormTest.Cf252Doubles: Cf252DblsNormRadioButton.Checked = true; break; case NormTest.Cf252Singles: Cf252SinglesNormRadioButton.Checked = true; break; case NormTest.Collar: break; } this.DataSourceComboBox.Items.Clear(); foreach (ConstructedSource cs in System.Enum.GetValues(typeof(ConstructedSource))) { if (cs.AcquireChoices() || cs.LMFiles(ah.det.Id.SRType)) { DataSourceComboBox.Items.Add(cs.HappyFunName()); } } if (ah.ap.acquire_type == AcquireConvergence.CycleCount) { this.UseNumCyclesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.DoublesPrecision) { this.UseDoublesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.TriplesPrecision) { this.UseTriplesRadioButton.Checked = true; } DataSourceComboBox.SelectedItem = ah.ap.data_src.HappyFunName(); }
public IDDAcquireDBMeas(AcquireHandlers AH) { ah = AH; InitializeComponent(); LoadMeasurementsFromDB(); }
public IDDAcquireRatesOnly() { InitializeComponent(); // Generate an instance of the generic acquire dialog event handlers object (this now includes the AcquireParameters object used for change tracking) ah = new AcquireHandlers(); ah.mo = AssaySelector.MeasurementOption.rates; Text += " for detector " + ah.det.Id.DetectorName; // Populate the UI fields with values from the local AcquireParameters object QCTestsCheckbox.Checked = ah.ap.qc_tests; PrintResultsCheckBox.Checked = ah.ap.print; CommentAtEndCheckBox.Checked = ah.ap.ending_comment; NumCyclesTextBox.Text = Format.Rend(ah.ap.num_runs); CommentTextBox.Text = ah.ap.comment; CountTimeTextBox.Text = Format.Rend(ah.ap.run_count_time); ItemIdTextBox.Text = ah.ap.item_id; MeasPrecisionTextBox.Text = ah.ap.meas_precision.ToString("F2"); MinNumCyclesTextBox.Text = Format.Rend(ah.ap.min_num_runs); MaxNumCyclesTextBox.Text = Format.Rend(ah.ap.max_num_runs); if (ah.det.ListMode) { //Make sure we have a default analyzer for the LM instrument with parms as set in measurement parameters. ah.det.MultiplicityParams.gateWidthTics = (ulong)ah.det.SRParams.gateLengthMS * 10; if (ah.det.MultiplicityParams.FA == FAType.FAOn) { ah.det.MultiplicityParams.AccidentalsGateDelayInTics = 10; } else { ah.det.MultiplicityParams.AccidentalsGateDelayInTics = 40960; } // prepare analyzer params from detector SR params and only activate the SRParms analyzer for rates only CountingAnalysisParameters AnalysisParams = NCC.CentralizedState.App.LMBD.CountingParameters(ah.det, true); foreach (SpecificCountingAnalyzerParams existing in AnalysisParams) { existing.Active = false; } if (!AnalysisParams.Exists(w => { return((w is Multiplicity) && (w as Multiplicity).Equals(ah.det.MultiplicityParams)); })) { AnalysisParams.Insert(0, ah.det.MultiplicityParams); } SpecificCountingAnalyzerParams currentParms = AnalysisParams.Find(w => { return((w is Multiplicity) && (w as Multiplicity).Equals(ah.det.MultiplicityParams)); }); currentParms.Active = true; currentParms.Rank = 0; NCC.CentralizedState.App.DB.UpdateDetectorParams(ah.det); NCC.CentralizedState.App.DB.UpdateAcquireParams(ah.det); NCC.CentralizedState.App.LMBD.UpdateCounters(ah.det, AnalysisParams); } DataSourceComboBox.Items.Clear(); foreach (ConstructedSource cs in Enum.GetValues(typeof(ConstructedSource))) { if (cs.AcquireChoices() || cs.LMFiles(ah.det.Id.SRType)) { DataSourceComboBox.Items.Add(cs.NameForViewing(ah.det.Id.SRType)); } } if (ah.ap.acquire_type == AcquireConvergence.CycleCount) { UseNumCyclesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.DoublesPrecision) { UseDoublesRadioButton.Checked = true; } else if (ah.ap.acquire_type == AcquireConvergence.TriplesPrecision) { UseTriplesRadioButton.Checked = true; } DataSourceComboBox.SelectedItem = ah.ap.data_src.NameForViewing(ah.det.Id.SRType); SetHelp(); }