Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public IDDCollarCrossRef(INCCAnalysisParams.collar_combined_rec c = null, bool mod = false)
        {
            InitializeComponent();
            mp = new MethodParamFormFields(AnalysisMethod.Collar);

            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;
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
 private void MaterialTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (mp.acq.item_type != MaterialTypeComboBox.Text)
     {
         mp.acq.item_type = MaterialTypeComboBox.Text;
         modified         = true;
         mp.SelectMaterialType((ComboBox)sender);
     }
 }
 private void MaterialTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     mp.SelectMaterialType((ComboBox)sender);
     mp.ams = Integ.GetMethodSelections(mp.acq.detector_id, mp.acq.item_type); // unfinished, test and firm up
     if (mp.HasMethod)
     {
         mp.imd = new INCCAnalysisParams.truncated_mult_rec((INCCAnalysisParams.truncated_mult_rec)mp.ams.GetMethodParameters(mp.am));
     }
     else
     {
         mp.imd          = new INCCAnalysisParams.truncated_mult_rec(); // not mapped, so make a new one
         mp.imd.modified = true;
     }
     tm = (INCCAnalysisParams.truncated_mult_rec)mp.imd;
 }
Ejemplo n.º 7
0
 private void MaterialTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     mp.SelectMaterialType((ComboBox)sender);
     if (mp.HasMethod)
     {
         mp.imd = new INCCAnalysisParams.active_rec((INCCAnalysisParams.active_rec)mp.ams.GetMethodParameters(mp.am));
     }
     else
     {
         mp.imd          = new INCCAnalysisParams.active_rec(); // not mapped, so make a new one
         mp.imd.modified = true;
     }
     active = (INCCAnalysisParams.active_rec)mp.imd;
     mp.cev = active.cev;
     CalibrationFieldFiller(active.cev);
 }
Ejemplo n.º 8
0
 private void MaterialTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     mp.SelectMaterialType((ComboBox)sender);
     if (mp.HasMethod)
     {
         mp.imd = new INCCAnalysisParams.multiplicity_rec((INCCAnalysisParams.multiplicity_rec)mp.ams.GetMethodParameters(mp.am));
     }
     else
     {
         mp.imd          = new INCCAnalysisParams.multiplicity_rec(); // not mapped, so make a new one
         mp.imd.modified = true;
     }
     mult = (INCCAnalysisParams.multiplicity_rec)mp.imd;
     FieldFiller();
     RadioRadio();
 }
Ejemplo n.º 9
0
 private void MaterialTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     mp.SelectMaterialType((ComboBox)sender);
     if (mp.HasMethod)
     {
         mp.imd = new INCCAnalysisParams.add_a_source_rec((INCCAnalysisParams.add_a_source_rec)mp.ams.GetMethodParameters(mp.am));
     }
     else
     {
         mp.imd          = new INCCAnalysisParams.add_a_source_rec(); // not mapped, so make a new one
         mp.imd.modified = true;
     }
     aas    = (INCCAnalysisParams.add_a_source_rec)mp.imd;
     mp.cev = aas.cev;
     CurveTypeComboBox.SelectedItem = aas.cev.cal_curve_equation;
     FieldFiller(aas.cev);
     FieldFiller();
 }