コード例 #1
0
ファイル: IDDCollarCrossRef.cs プロジェクト: tempbottle/INCC6
        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);
        }
コード例 #2
0
ファイル: IDDCollarCrossRef.cs プロジェクト: hnordquist/INCC6
        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;
        }
コード例 #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;
        }
コード例 #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);
        }
コード例 #5
0
ファイル: IDDActiveMultCal.cs プロジェクト: tempbottle/INCC6
        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);

        }
コード例 #6
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);
        }
コード例 #7
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);
        }
コード例 #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();
        }
コード例 #9
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();
        }
コード例 #10
0
ファイル: IDDCollarCrossRef.cs プロジェクト: tempbottle/INCC6
        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);
        }
コード例 #11
0
 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();
 }
コード例 #12
0
 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();
 }