public IDDErrorCalcMethod() { InitializeComponent(); ap = Integ.GetCurrentAcquireParams(); ex = ap.error_calc_method; SampleRadioButton.Checked = (ap.error_calc_method == ErrorCalculationTechnique.Sample); }
public IDDNormalizationSetup() { InitializeComponent(); det = Integ.GetCurrentAcquireDetector(); np = Integ.GetCurrentNormParams(det); this.Text += " for detector " + det.Id.DetectorName; switch (np.biasMode) { case NormTest.AmLiSingles: UseAmLiRadioButton.Checked = true; break; case NormTest.Cf252Doubles: UseCf252DoublesRadioButton.Checked = true; break; case NormTest.Cf252Singles: UseCf252SinglesRadioButton.Checked = true; break; case NormTest.Collar: CollarRadioButton.Checked = true; break; } }
public IDDReviewHoldup() { InitializeComponent(); Integ.GetCurrentAcquireDetectorPair(ref acq, ref det); FieldFiller(); Text += " for Detector " + det.Id.DetectorId; }
public IDDCorrectionFactors(INCCAnalysisParams.collar_combined_rec c, bool mod) { InitializeComponent(); mp = new MethodParamFormFields(AnalysisMethod.CollarAmLi); modified = mod; Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det); this.Text += " for " + mp.det.Id.DetectorName; col = c; MaterialLabel.Text = mp.acq.item_type; ModeLabel.Text = col.collar.collar_mode ? "Fast(Cd)" : "Thermal (no Cd)"; DetectorLabel.Text = mp.det.Id.DetectorName; ATextBox.NumberFormat = NumericTextBox.Formatter.E6; ATextBox.ToValidate = NumericTextBox.ValidateType.Double; AErrorTextBox.NumberFormat = NumericTextBox.Formatter.E6; AErrorTextBox.ToValidate = NumericTextBox.ValidateType.Double; BTextBox.NumberFormat = NumericTextBox.Formatter.E6; BTextBox.ToValidate = NumericTextBox.ValidateType.Double; BErrorTextBox.NumberFormat = NumericTextBox.Formatter.E6; BErrorTextBox.ToValidate = NumericTextBox.ValidateType.Double; FillForm(); this.TopMost = true; }
private void MaintainUnattendedMeasSetupClick(object sender, RoutedEventArgs e) { IDDSetupUnattendedMeas f = new IDDSetupUnattendedMeas(Integ.GetCurrentAcquireDetector()); f.ShowDialog(); }
public IDDCollarCrossRef(INCCAnalysisParams.collar_combined_rec c = null, bool mod = false) { InitializeComponent(); mp = new MethodParamFormFields(AnalysisMethod.CollarAmLi); RelativeDoublesRateTextBox.ToValidate = NumericTextBox.ValidateType.Float; RelativeDoublesRateTextBox.NumberFormat = NumericTextBox.Formatter.F3; Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det); this.Text += " for " + mp.det.Id.DetectorName; modified = mod; mp.RefreshMatTypeComboBox(MaterialTypeComboBox); mp.SelectMaterialType(MaterialTypeComboBox); if (mp.HasMethod && c == null) { mp.imd = new INCCAnalysisParams.collar_combined_rec((INCCAnalysisParams.collar_combined_rec)mp.ams.GetMethodParameters(mp.am)); col = (INCCAnalysisParams.collar_combined_rec)mp.imd; } else if (mp.HasMethod && c != null) { col = c; } else { mp.imd = new INCCAnalysisParams.collar_combined_rec(); // not mapped, so make a new one col = (INCCAnalysisParams.collar_combined_rec)mp.imd; modified = true; } CrossReferenceFieldFiller(col); this.TopMost = true; }
public IDDK5CollarItemData(bool suppressBackButton = false) { InitializeComponent(); mp = new MethodParamFormFields(AnalysisMethod.CollarAmLi); Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det); INCCAnalysisParams.collar_combined_rec inDB; if (mp.HasMethod) { mp.imd = new INCCAnalysisParams.collar_combined_rec((INCCAnalysisParams.collar_combined_rec)mp.ams.GetMethodParameters(mp.am)); inDB = (INCCAnalysisParams.collar_combined_rec)mp.imd; } K5TextBox.ToValidate = NumericTextBox.ValidateType.Double; K5TextBox.NumberFormat = NumericTextBox.Formatter.E3; K5ErrorTextBox.ToValidate = NumericTextBox.ValidateType.Double; K5ErrorTextBox.NumberFormat = NumericTextBox.Formatter.E3; K5TextBox.Value = col.collar.sample_corr_fact.v; K5ErrorTextBox.Value = col.collar.sample_corr_fact.err; for (int i = 0; i < INCCAnalysisParams.MAX_COLLAR_K5_PARAMETERS; i++) { if (col.k5.k5[i] != null) { DataGridViewRow row = new DataGridViewRow(); row.CreateCells(dataGridView1); dataGridView1.Rows.Add(new object[] { col.k5.k5_checkbox[i], col.k5.k5_label[i], col.k5.k5[i].v, col.k5.k5[i].err }); } } k5TotalTextBox.Value = total; k5TotalErrTextBox.Value = totalerr; }
public IDDMeasurementList(string filter = "") { InitializeComponent(); this.Text = filter == ""?"All Measurements":filter + " Measurements"; Detector det = Integ.GetCurrentAcquireDetector(); mlist = NC.App.DB.MeasurementsFor(det, filter); mlist.RemoveAll(EmptyFile); ctrllog = NC.App.Loggers.Logger(LMLoggers.AppSection.Control); foreach (Measurement m in mlist) { string ItemWithNumber = string.IsNullOrEmpty(m.MeasurementId.Item.item) ? "Empty" : m.AcquireState.ItemId.item; if (Path.GetFileName(m.MeasurementId.FileName).Contains("_")) { //Lameness alert to display subsequent reanalysis number...... hn 9.21.2015 ItemWithNumber += "(" + Path.GetFileName(m.MeasurementId.FileName).Substring(Path.GetFileName(m.MeasurementId.FileName).IndexOf('_') + 1, 2) + ")"; } ListViewItem lvi = new ListViewItem(new string[] { ItemWithNumber, String.IsNullOrEmpty(m.AcquireState.stratum_id.Name) ? "Empty" : m.AcquireState.stratum_id.Name, m.MeasDate.DateTime.ToString("MM.dd.yy"), m.MeasDate.DateTime.ToString("HH:mm:ss") }); listView1.Items.Add(lvi); } if (mlist.Count == 0) { string msg = string.Format("There were no measurements for {0} of type {1} found.", det.Id.DetectorId, filter == "Rates"?"Rates Only": filter); MessageBox.Show(msg, "WARNING"); } }
private void OKButton_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(DetectorIdTextBox.Text)) { Detector newdet = null; if (srtype) { newdet = Integ.CreateDetectorWithAssociations(model, DetectorIdTextBox.Text, ElectronicsIdTextBox.Text, DetectorTypeTextBox.Text); IDDShiftRegisterSetup f = new IDDShiftRegisterSetup(newdet); // copies updated SR PAram value to the newdet instance, database persist follows below f.ShowDialog(); if (f.DialogResult == System.Windows.Forms.DialogResult.OK) { // new behavior: newdet.SRParams has the changes already; } } else { newdet = Integ.CreateDetectorWithAssociations(model, DetectorIdTextBox.Text, ElectronicsIdTextBox.Text, DetectorTypeTextBox.Text, (InstrType)LMTypes.SelectedItem); AcquireParameters acq = Integ.GetCurrentAcquireParams(); LMConnectionParams f = new LMConnectionParams(newdet, acq, false); f.StartWithLMDetail(); f.ShowDialog(); if (f.DialogResult == DialogResult.OK) { } } Integ.PersistDetectorAndAssociations(newdet); RefreshDetectorCombo(); // Assuming the detector was added to the internal detector list by CreateDetectorWithAssociations, this will add a new detector to the detector list this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } }
public void ShowOther() { Detector det = Integ.GetCurrentAcquireDetector(); IDDMeasurementList measlist = new IDDMeasurementList(); measlist.Init(mlist, AssaySelector.MeasurementOption.verification, goal: IDDMeasurementList.EndGoal.Reanalysis, lmonly: false, inspnum: "All", detector: det); if (measlist.bGood) { DialogResult = measlist.ShowDialog(); if (DialogResult == DialogResult.OK) { Measurement m = measlist.GetSingleSelectedMeas(); if (m == null) { return; } det = m.Detector; // use detector as re-constructed from the original measurement // get the cycles for the selected measurement from the database, and add them to the current measurement CycleList cl = N.App.DB.GetCycles(det, m.MeasurementId, DetectorDefs.ConstructedSource.DB, m.AnalysisParams); // APluralityOfMultiplicityAnalyzers: // URGENT: get all the cycles associated with each analzyer, restoring into the correct key->result pair m.Add(cl); new IDDReanalysisAssay(m, det).ShowDialog(); } } else { DialogResult = DialogResult.None; } }
public IDDStratumId() { InitializeComponent(); det = Integ.GetCurrentAcquireDetector(); currStrata = NC.App.DB.StrataList(det); DeleteStratumIdBtn.Enabled = (currStrata.Count >= 1); }
private void OKBtn_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(ItemIdComboBox.Text)) { MessageBox.Show("You must enter an item id for this assay.", "ERROR"); } else { Integ.FillInReanalysisRemainingDetails(meas, useCurCalibParams: UseCurrentCalibCheckBox.Checked); meas.ResultsFiles.Reset(); if (normmodified) { meas.Norm.currNormalizationConstant = norm; } // save/update item id changes only when user selects OK N.App.DB.ItemIds.Set(); // writes any new or modified item ids to the DB N.App.DB.ItemIds.Refresh(); // save and update the in-memory item list bool keepgoing = GetAdditionalParameters(); if (keepgoing) { ah.ap.data_src = DetectorDefs.ConstructedSource.Reanalysis; if (ah.OKButton_Click(sender, e) == DialogResult.OK) { N.App.Opstate.Measurement = meas; Visible = false; UIIntegration.Controller.SetAssay(); // tell the controller to do an assay operation using the current measurement state UIIntegration.Controller.Perform(); // start the thread Close(); } } } }
public IDDCollarCal() { InitializeComponent(); MessageBox.Show("This functionality is not complete yet.", "RESULTS UNKNOWN AT THIS TIME"); mp = new MethodParamFormFields(AnalysisMethod.Collar); Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det); this.Text += " for " + mp.det.Id.DetectorName; //mp.RefreshMatTypeComboBox(MaterialTypeComboBox); mp.SelectMaterialType(mp.acq.item_type); if (mp.HasMethod) { mp.imd = new INCCAnalysisParams.collar_rec((INCCAnalysisParams.collar_rec)mp.ams.GetMethodParameters(mp.am)); } else { mp.imd = new INCCAnalysisParams.collar_rec(); // not mapped, so make a new one mp.imd.modified = true; } col = (INCCAnalysisParams.collar_rec)mp.imd; mp.cev = col.cev; mp.RefreshCurveEqComboBox(CurveTypeComboBox); CalibrationFieldFiller(col.cev); }
public IDDBackgroundSetup(Detector dt = null, BackgroundParameters bg = null) { InitializeComponent(); if (det == null) { det = Integ.GetCurrentAcquireDetector(); } else { det = dt; } if (bp == null) { bp = Integ.GetCurrentBackgroundParams(det); } else { bp = bg; } bp.modified = false; this.Text += " for detector " + det.Id.DetectorName; foreach (Control nt in this.Controls) { if (nt.GetType() == typeof(NumericTextBox)) { ((NumericTextBox)nt).NumberFormat = NumericTextBox.Formatter.F6; ((NumericTextBox)nt).ToValidate = NumericTextBox.ValidateType.Float; ((NumericTextBox)nt).Min = -100.0; ((NumericTextBox)nt).Max = 100000.0; } } FieldFiller(); }
public IDDReanalyzeDBMeas() { InitializeComponent(); Detector det = Integ.GetCurrentAcquireDetector(); Text += " for Detector " + det.Id.DetectorId; mlist = N.App.DB.IndexedResultsFor(det.Id.DetectorId, "verification", "All"); }
public IDDPercentU235(AnalysisMethods ams_, INCCAnalysisParams.cal_curve_rec c) { InitializeComponent(); percent = c.percent_u235; U235PercentTextBox.Text = percent.ToString("F3"); Integ.GetCurrentAcquireDetectorPair(ref acq, ref det); ams = ams_; }
public IDDReviewCalibration() { InitializeComponent(); Integ.GetCurrentAcquireDetectorPair(ref acq, ref det); FieldFiller(); Text += " for Detector " + det.Id.DetectorId; DisplayResultsInTextRadioButton.Checked = true; }
public IDDPlotAssayResults() { InitializeComponent(); Integ.GetCurrentAcquireDetectorPair(ref ap, ref det); Text += " for detector " + det.Id.DetectorName; RefreshMaterialComboBox(); RefreshMethodComboBox(); }
private void FieldFiller() { // Populate the UI fields with values from the local AcquireParameters object UseCurrentCalibCheckBox.Checked = true; ReplaceOriginalCheckBox.Checked = false; QCTestsCheckBox.Checked = ah.ap.qc_tests; PrintResultsCheckBox.Checked = ah.ap.print; CommentAtEndCheckBox.Checked = ah.ap.ending_comment; CommentTextBox.Text = ah.ap.comment; DeclaredMassTextBox.Text = ah.ap.mass.ToString("F3"); NormConst.Text = norm.v.ToString("F4"); NormConstErr.Text = norm.err.ToString("F4"); dateTimePicker1.Value = new DateTime(meas.MeasDate.Ticks); InventoryChangeCodeComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in N.App.DB.InvChangeCodes.GetList()) { InventoryChangeCodeComboBox.Items.Add(desc.Name); } IOCodeComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in N.App.DB.IOCodes.GetList()) { IOCodeComboBox.Items.Add(desc.Name); } ItemIdComboBox.Items.Clear(); foreach (ItemId id in N.App.DB.ItemIds.GetList()) { ItemIdComboBox.Items.Add(id.item); } StratumIdComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in N.App.DB.Stratums.GetList()) { StratumIdComboBox.Items.Add(desc.Name); } StratumIdComboBox.SelectedItem = null; MaterialTypeComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in N.App.DB.Materials.GetList()) { MaterialTypeComboBox.Items.Add(desc.Name); } MaterialTypeComboBox.SelectedItem = ah.ap.item_type; StratumIdComboBox.SelectedItem = ah.ap.stratum_id.Name; InventoryChangeCodeComboBox.SelectedItem = ah.ap.inventory_change_code; IOCodeComboBox.SelectedItem = ah.ap.io_code; ItemIdComboBox.SelectedItem = ah.ap.item_id; am = Integ.GetMethodSelections(ah.ap); if (am != null) { if (am.Has(AnalysisMethod.CuriumRatio)) { IsotopicsBtn.Enabled = false; BackgroundBtn.Enabled = false; } } }
public IDDActiveMultCal() { InitializeComponent(); mp = new MethodParamFormFields(AnalysisMethod.ActiveMultiplicity); Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det); this.Text += " for " + mp.det.Id.DetectorName; mp.RefreshMatTypeComboBox(MaterialTypeComboBox); }
private void MaintainCollarClick(object sender, RoutedEventArgs e) { //HN -- Cross ref shown first, next button takes you to IDDCollarCal IDDCollarCrossRef f = new IDDCollarCrossRef(Integ.GetCurrentAcquireParams().collar_mode, false); f.StartPosition = FormStartPosition.CenterScreen; f.ShowDialog(); }
public IDDDemingFit() { InitializeComponent(); Integ.GetCurrentAcquireDetectorPair(ref ap, ref det); Text += " for detector " + det.Id.DetectorName; ict = new IDDCurveType(); RefreshMaterialComboBox(); RefreshMethodComboBox(); }
public IDDHeavyMetalItemData(AnalysisMethods ams_, ItemId item) { InitializeComponent(); umass = item.declaredUMass; length = item.length; DeclaredUMassTextBox.Text = umass.ToString("F3"); LengthTextBox.Text = length.ToString("F3"); Integ.GetCurrentAcquireDetectorPair(ref acq, ref det); }
public IDDDualEnergyMult() { InitializeComponent(); InnerTextBox.Text = "0.0001"; // default OuterTextBox.Text = "0.0001"; // default _reg = new Regex("[1-9][0-9]*\\.?[0-9]*([Ee][+-]?[0-9]+)?"); // reg ex for number test det = Integ.GetCurrentAcquireDetector(); Text += " for detector " + det.Id.DetectorName; }
public IDDSaveCampaignId() { InitializeComponent(); Integ.GetCurrentAcquireDetectorPair(ref acq, ref det); Text += " for Detector " + det.Id.DetectorId; mlist = N.App.DB.IndexedResultsFor(det.Id.DetectorId, string.Empty, "All"); FilteredList = new List <INCCDB.IndexedResults>(); LoadInspNumCombo(); }
public IDDReviewAssay() { InitializeComponent(); Integ.GetCurrentAcquireDetectorPair(ref acq, ref det); FieldFiller(); Text += " for Detector " + det.Id.DetectorId; mlist = N.App.DB.IndexedResultsFor(det.Id.DetectorId, "verification", "All"); LoadInspNumCombo(); DisplayResultsInTextRadioButton.Checked = true; }
public IDDFacility() { InitializeComponent(); FacilityComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in NC.App.DB.Facilities.GetList()) { FacilityComboBox.Items.Add(desc); } MBAComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in NC.App.DB.MBAs.GetList()) { MBAComboBox.Items.Add(desc); } AcquireParameters _acq = null; Integ.GetCurrentAcquireDetectorPair(ref _acq, ref det); acq = new AcquireParameters(_acq); // making a copy fixes an aliasing issue for some current detector conditions initdetname = string.Copy(det.Id.DetectorId); try { FacilityComboBox.SelectedItem = NC.App.DB.Facilities.Get(acq.facility.Name); } catch (InvalidOperationException) { } try { MBAComboBox.SelectedItem = NC.App.DB.MBAs.Get(acq.mba.Name); } catch (InvalidOperationException) { } DetectorIdComboBox.Items.Clear(); foreach (Detector d in NC.App.DB.Detectors) { DetectorIdComboBox.Items.Add(d); } if (det != null) { DetectorIdComboBox.SelectedItem = det; } DetectorParametersCheckBox.Checked = acq.review.DetectorParameters; CalibrationParametersCheckBox.Checked = acq.review.CalibrationParameters; IsotopicsCheckBox.Checked = acq.review.Isotopics; IndividualCycleRawDataCheckBox.Checked = acq.review.RawCycleData; IndividualCycleRateData.Checked = acq.review.RateCycleData; SummedRawCoincidenceDataCheckBox.Checked = acq.review.SummedRawCoincData; SummedMultiplicityDistributionsCheckBox.Checked = acq.review.SummedMultiplicityDistributions; IndividualMultiplicityDistributionsCheckBox.Checked = acq.review.MultiplicityDistributions; InspectorNameTextBox.Text = acq.user_id; InspectionNumberTextBox.Text = acq.campaign_id; }
private void LoadMeasurementList(bool notify = true) { MeasurementView.Items.Clear(); Integ.GetCurrentAcquireDetectorPair(ref acq, ref det); Text = "Delete Measurements" + (det != null ? " for Detector " + det.Id.DetectorId : string.Empty); ilist = N.App.DB.IndexedResultsFor(det.Id.DetectorId, string.Empty, "All"); mlist = N.App.DB.MeasurementsFor(ilist, LMOnly: false, skipMethods: true); if (notify && mlist.Count == 0) { string msg = string.Format("No measurements for {0} found.", det == null ? "any" : det.Id.DetectorId); MessageBox.Show(msg, "WARNING"); return; } MeasurementView.ShowItemToolTips = true; int mlistIndex = 0; foreach (Measurement m in mlist) { ListViewItem lvi = new ListViewItem(new string[] { m.MeasOption.PrintName(), m.AcquireState.item_id, string.IsNullOrEmpty(m.AcquireState.stratum_id.Name) ? "Default" : m.AcquireState.stratum_id.Name, m.MeasDate.DateTime.ToString("yy.MM.dd HH:mm:ss"), m.AcquireState.comment, mlistIndex.ToString() // subitem at index 7 has the original mlist index of this element }); MeasurementView.Items.Add(lvi); lvi.Tag = m.MeasDate; // for proper column sorting string p = GetMainFilePath(m.ResultsFiles, m.MeasOption, false); if (string.IsNullOrEmpty(p)) { lvi.ToolTipText = "(" + m.MeasurementId.UniqueId.ToString() + ") No results file available"; } else { lvi.ToolTipText = "(" + m.MeasurementId.UniqueId.ToString() + ") " + p; } mlistIndex++; } MCount.Text = MeasurementView.Items.Count.ToString() + " measurements"; if (MeasurementView.SelectedItems.Count > 0) { MCountSel.Text = MeasurementView.SelectedItems.Count.ToString(); } else { MCountSel.Text = string.Empty; } //Refresh(); }
private void OKBtn_Click(object sender, EventArgs e) { AnalysisMethods am = Integ.GetMethodSelections(ah.ap); if (am != null) { bool isCollar = Integ.GetMethodSelections(Integ.GetCurrentAcquireParams()).Has(AnalysisMethod.CollarAmLi) || Integ.GetMethodSelections(Integ.GetCurrentAcquireParams()).Has(AnalysisMethod.CollarCf); if (string.IsNullOrEmpty(ItemIdComboBox.Text)) { MessageBox.Show("You must enter an item id for this assay.", "ERROR"); DialogResult = DialogResult.Abort; } else if (!isCollar) { // save/update item id changes only when user selects OK ItemId Cur = NC.App.DB.ItemIds.Get(ah.ap.item_id); Cur.IsoApply(NC.App.DB.Isotopics.Get(ah.ap.isotopics_id)); // apply the iso dates to the item NC.App.DB.ItemIds.Set(); // writes any new or modified item ids to the DB NC.App.DB.ItemIds.Refresh(); // save and update the in-memory item list bool ocntinue = GetAdditionalParameters(); if (ocntinue && (ah.OKButton_Click(sender, e) == DialogResult.OK)) { Visible = false; // Add strata update to measurement object. HN 9.23.2015 UIIntegration.Controller.SetAssay(); // tell the controller to do an assay operation using the current measurement state UIIntegration.Controller.Perform(); // start the measurement file or DAQ thread Close(); } DialogResult = DialogResult.None; } else { //Collar // save/update item id changes only when user selects OK ItemId Cur = NC.App.DB.ItemIds.Get(ah.ap.item_id); Cur.IsoApply(NC.App.DB.Isotopics.Get(ah.ap.isotopics_id)); // apply the iso dates to the item NC.App.DB.ItemIds.Set(); // writes any new or modified item ids to the DB NC.App.DB.ItemIds.Refresh(); // save and update the in-memory item list DialogResult = DialogResult.OK; Close(); } } else { MessageBox.Show(string.Format("No analysis methods specified for detector {0} and material {1}", ah.ap.detector_id, ah.ap.item_type), "Verification", MessageBoxButtons.OK); } }
public IDDFacility() { InitializeComponent(); FacilityComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in NC.App.DB.Facilities.GetList()) { FacilityComboBox.Items.Add(desc); } MBAComboBox.Items.Clear(); foreach (INCCDB.Descriptor desc in NC.App.DB.MBAs.GetList()) { MBAComboBox.Items.Add(desc); } Integ.GetCurrentAcquireDetectorPair(ref acq, ref det); initdetname = String.Copy(det.Id.DetectorId); try { FacilityComboBox.SelectedItem = NC.App.DB.Facilities.Get(acq.facility.Name); } catch (InvalidOperationException) { } try { MBAComboBox.SelectedItem = NC.App.DB.MBAs.Get(acq.mba.Name); } catch (InvalidOperationException) { } DetectorIdComboBox.Items.Clear(); foreach (Detector d in NC.App.DB.Detectors) { //if (!d.ListMode) DetectorIdComboBox.Items.Add(d); } //Bolth.Checked = (det != null && det.ListMode); // EH reloads combo box with LMs if true if (det != null) { DetectorIdComboBox.SelectedItem = det; } DetectorParametersCheckBox.Checked = acq.review_detector_parms; CalibrationParametersCheckBox.Checked = acq.review_calib_parms; IsotopicsCheckBox.Checked = acq.review_isotopics; IndividualCycleRawDataCheckBox.Checked = acq.review_run_raw_data; IndividualCycleRateData.Checked = acq.review_run_rate_data; SummedRawCoincidenceDataCheckBox.Checked = acq.review_summed_raw_data; SummedMultiplicityDistributionsCheckBox.Checked = acq.review_summed_mult_dist; IndividualMultiplicityDistributionsCheckBox.Checked = acq.review_run_mult_dist; InspectorNameTextBox.Text = acq.user_id; InspectionNumberTextBox.Text = acq.campaign_id; }