コード例 #1
0
ファイル: IDDCollarCal.cs プロジェクト: tempbottle/INCC6
        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
ファイル: IDDCollarCal.cs プロジェクト: tempbottle/INCC6
        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
ファイル: IDDActiveCal.cs プロジェクト: tempbottle/INCC6
        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
ファイル: IDDAddASourceCal.cs プロジェクト: tempbottle/INCC6
 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
ファイル: IDDKnownAlphaCal.cs プロジェクト: hnordquist/INCC6
        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
ファイル: IDDCollarCal.cs プロジェクト: radtek/INCC6
        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;
        }
コード例 #9
0
 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();
 }