Beispiel #1
0
        public IDDCollarCrossRef()
        {
            InitializeComponent();
            MessageBox.Show("This functionality is not complete yet.", "RESULTS UNKNOWN AT THIS TIME");
            mp = new MethodParamFormFields(AnalysisMethod.COLLAR_DETECTOR_SAVE_RESTORE);

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

            mp.RefreshMatTypeComboBox(MaterialTypeComboBox);
            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;
            col.GenParamList();
            mp.RefreshMatTypeComboBox (MaterialTypeComboBox);
            //CrossReferenceFieldFiller(col);
        }
Beispiel #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;
        }
Beispiel #3
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;
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
        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);

        }
        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);
        }
Beispiel #7
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);
        }
Beispiel #8
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();
        }
Beispiel #9
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();
        }
Beispiel #10
0
        public IDDCollarCrossRef()
        {
            InitializeComponent();
            MessageBox.Show("This functionality is not complete yet.", "RESULTS UNKNOWN AT THIS TIME");
            mp = new MethodParamFormFields(AnalysisMethod.COLLAR_DETECTOR_SAVE_RESTORE);

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

            mp.RefreshMatTypeComboBox(MaterialTypeComboBox);
            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;
            col.GenParamList();
            mp.RefreshMatTypeComboBox(MaterialTypeComboBox);
            //CrossReferenceFieldFiller(col);
        }
 public IDDTruncatedMultCalibration()
 {
     InitializeComponent();
     mp = new MethodParamFormFields(AnalysisMethod.TruncatedMultiplicity);
     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);
     FieldFiller();
 }
 public IDDTruncatedMultCalibration()
 {
     InitializeComponent();
     mp = new MethodParamFormFields(AnalysisMethod.TruncatedMultiplicity);
     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);
     FieldFiller();
 }