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 { // 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(); } } }
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(); } } } }
private void OKBtn_Click(object sender, EventArgs e) { if (ah.OKButton_Click(sender, e) == DialogResult.OK) { //user can cancel in here during LM set-up, account for it. Visible = false; 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(); } }
private void OKBtn_Click(object sender, EventArgs e) { if (ah.OKButton_Click(sender, e) == System.Windows.Forms.DialogResult.OK) { // todo: save off any norm params changes too //user can cancel in here during LM set-up, account for it. this.Visible = false; 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 this.Close(); } }
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); } }
private void OKBtn_Click(object sender, EventArgs e) { if (ah.OKButton_Click(sender, e) == System.Windows.Forms.DialogResult.OK) { //user can cancel in here during LM set-up, account for it. // Was missing option for Active/Passive Background..... HN 8.19.2015 ChooseBackgroundType type = new ChooseBackgroundType(); type.ShowDialog(); Visible = false; 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(); } }
private void OKButton_Click(object sender, EventArgs e) { if (ah.OKButton_Click(sender, e) == System.Windows.Forms.DialogResult.OK) { //user can cancel in here during LM set-up, account for it. Visible = false; if (ah.det.ListMode) { CreateMultiplicityAnalyzer(); } 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(); } }
private void OKBtn_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(np.sourceId)) { MessageBox.Show("You must enter a source id for this assay.", "ERROR"); return; } else if (np.modified) { NCC.CentralizedState.App.DB.NormParameters.Map[ah.det] = np; // back to the map, cuz it is a copy NCC.CentralizedState.App.DB.NormParameters.Set(ah.det, np); // in the database } if (ah.OKButton_Click(sender, e) == DialogResult.OK) { Visible = false; 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(); } }
private void OKBtn_Click(object sender, EventArgs e) { if (ah.OKButton_Click(sender, e) == System.Windows.Forms.DialogResult.OK) { //user can cancel in here during LM set-up, account for it. // Was missing option for Active/Passive Background..... HN 8.19.2015 ChooseBackgroundType type = new ChooseBackgroundType(); type.ShowDialog(); Visible = false; //If LM, copy SR params if no multiplicity exists ah.mo = AssaySelector.MeasurementOption.background; if (ah.det.ListMode) { //Make a multiplicity counter if LM and not there. CreateMultiplicityAnalyzer(); } 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(); } }
private void OKBtn_Click(object sender, EventArgs e) { if (ItemIdComboBox.Text == String.Empty) { MessageBox.Show("You must enter an item id for this assay.", "ERROR"); } else { if (ah.OKButton_Click(sender, e) == System.Windows.Forms.DialogResult.OK) { //This is fubar. Must save changed parameters before running analysis. HN 9.10.2015 AnalysisMethods am = Integ.GetMethodSelections(ah.ap); if (am != null) { // NEXT: implement these choices, needs dialogs // if Verif + cal curve get U235 percent // if Verif + (cal curve or KA) get heavy metal data // if Verif + collar get collar data // if Verif + curium ratio, get cm_pu_ratio w dlg; if (am.Has(AnalysisMethod.CuriumRatio)) { new IDDCmPuRatio(ah.ap).ShowDialog(); } this.Visible = false; // Add strata update to measurement object. HN 9.23.2015 //user can cancel in here during LM set-up, account for it. 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 this.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); } } } }
private void OKBtn_Click(object sender, EventArgs e) { if (DeclaredMassTextBox.Value != ah.ap.mass) { ah.ap.mass = DeclaredMassTextBox.Value; ah.ap.modified = true; } if (CountTimeTextBox.Value != ah.ap.run_count_time) { ah.ap.run_count_time = CountTimeTextBox.Value; ah.ap.modified = true; } if ((ushort)NumCyclesTextBox.Value != ah.ap.num_runs) { ah.ap.num_runs = (ushort)NumCyclesTextBox.Value; ah.ap.modified = true; } if (MeasPrecisionTextBox.Value != ah.ap.meas_precision) { ah.ap.meas_precision = MeasPrecisionTextBox.Value; ah.ap.modified = true; } if ((ushort)MinNumCyclesTextBox.Value != ah.ap.min_num_runs) { ah.ap.min_num_runs = (ushort)MinNumCyclesTextBox.Value; ah.ap.modified = true; } if ((ushort)MaxNumCyclesTextBox.Value != ah.ap.max_num_runs) { ah.ap.max_num_runs = (ushort)MaxNumCyclesTextBox.Value; ah.ap.modified = true; } if (ah.ap.modified) { NCC.CentralizedState.App.DB.UpdateAcquireParams(ah.ap); } if (ah.det.ListMode) { CreateMultiplicityAnalyzer(); } // save/update item id changes only when user selects OK 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 res = DialogResult.Cancel; /* build message to warn user about selected analysis methods and requirements for calibration of known alpha. */ AnalysisMethods am = Integ.GetMethodSelections(ah.ap); if (am == null || !am.CalibrationAnalysisSelected()) { MessageBox.Show("Warning - no analysis methods selected for calibration.", "Check calibration methods", MessageBoxButtons.OKCancel); } else { string a = string.Format("These analysis methods are selected for calibration of material type {0} for detector {1}", ah.ap.item_type, ah.ap.detector_id); if (am.Has(AnalysisMethod.CalibrationCurve)) { a += "\r\n" + " Calibration Curve"; } if (am.Has(AnalysisMethod.Active)) { a += "\r\n" + " Active"; } if (am.Has(AnalysisMethod.AddASource)) { a += "\r\n" + " Add-A-Source"; } if (am.Has(AnalysisMethod.KnownA)) { a += "\r\n" + " Known Alpha"; a += "\r\n Known alpha calibration requires correct values for alpha weight and rho zero."; } a += "\r\n" + String.Format("Declared mass for item {0} = {1}\r\n", ah.ap.item_id, ah.ap.mass.ToString("F4")); res = MessageBox.Show(a, "Check calibration methods", MessageBoxButtons.OKCancel); } if (res != DialogResult.OK) { return; } if (ah.OKButton_Click(sender, e) == System.Windows.Forms.DialogResult.OK) { //user can cancel in here during LM set-up, account for it. 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(); } }