示例#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);
        }
示例#2
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);
        }
示例#3
0
        public IDDActivePassiveCal()
        {
            InitializeComponent();
            mp = new MethodParamFormFields(AnalysisMethod.ActivePassive);

            Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det);
            this.Text += " for " + mp.det.Id.DetectorName;

            mp.RefreshMatTypeComboBox(MaterialTypeComboBox);
            mp.RefreshCurveEqComboBox(CurveTypeComboBox);

            CalibrationFieldFiller(actpass.cev);
        }
示例#4
0
        public IDDActiveCal()
        {
            InitializeComponent();
            mp = new MethodParamFormFields(AnalysisMethod.Active);

            Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det);
            this.Text += " for " + mp.det.Id.DetectorName;

            mp.RefreshMatTypeComboBox(MaterialTypeComboBox);
            mp.RefreshCurveEqComboBox(CurveTypeComboBox);

            CalibrationFieldFiller(active.cev);
        }
示例#5
0
 public IDDAddASourceCal()
 {
     InitializeComponent();
     mp = new MethodParamFormFields(AnalysisMethod.AddASource);
     Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det);
     this.Text += " for " + mp.det.Id.DetectorName;
     this.MaterialTypeComboBox.Items.Clear();
     foreach (INCCDB.Descriptor desc in NC.App.DB.Materials.GetList())
     {
         MaterialTypeComboBox.Items.Add(desc.Name);
     }
     MaterialTypeComboBox.SelectedItem = mp.acq.item_type;
     mp.RefreshCurveEqComboBox(CurveTypeComboBox);
 }
示例#6
0
        public IDDKnownAlphaCal()
        {
            InitializeComponent();
            mp = new MethodParamFormFields(AnalysisMethod.KnownA);
            Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det);
            this.Text += " for " + mp.det.Id.DetectorName;

            mp.RefreshMatTypeComboBox(MaterialTypeComboBox);
            mp.RefreshCurveEqComboBox(CurveTypeComboBox, known_alpha.ring_ratio);

            SetNumberFormats();
            FieldFiller(known_alpha.cev);
            FieldFiller();
        }
示例#7
0
        public IDDKnownAlphaCal()
        {
            InitializeComponent();
            mp = new MethodParamFormFields(AnalysisMethod.KnownA);
            Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det);
            this.Text += " for " + mp.det.Id.DetectorName;

            mp.RefreshMatTypeComboBox(MaterialTypeComboBox);
            mp.RefreshCurveEqComboBox(CurveTypeComboBox, known_alpha.ring_ratio);

            SetNumberFormats();
            FieldFiller(known_alpha.cev);
            FieldFiller();
        }
示例#8
0
        public IDDCollarCal(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;
            mp.cev = col.collar.cev;
            mp.RefreshCurveEqComboBox(CurveTypeComboBox);
            CalibrationFieldFiller(col.collar.cev);
            SetHelp();
            this.TopMost = true;
        }
 public IDDCuriumRatioCalibration()
 {
     InitializeComponent();
     mp = new MethodParamFormFields(AnalysisMethod.CuriumRatio);
     Integ.GetCurrentAcquireDetectorPair(ref mp.acq, ref mp.det);
     this.Text += " for " + mp.det.Id.DetectorName;
     this.MaterialTypeComboBox.Items.Clear();
     foreach (INCCDB.Descriptor desc in NC.App.DB.Materials.GetList())
     {
         MaterialTypeComboBox.Items.Add(desc.Name);
     }
     MaterialTypeComboBox.SelectedItem = mp.acq.item_type;
     mp.RefreshMatTypeComboBox(MaterialTypeComboBox);
     mp.RefreshCurveEqComboBox(CurveTypeComboBox);
     FieldFiller(cm_ratio.cev);
     FieldFiller();
 }