Пример #1
0
        public IDDSelectPrimaryAM(AnalysisDefs.AnalysisMethods aam)
        {
            am = aam;
            InitializeComponent();
            EnableThoseWhomAreChosen();
            if (am.Normal == AnalysisMethod.None)
                am.Normal = am.GetFirstSelected();
            switch (am.Normal)
            {
                case AnalysisMethod.None:
                case AnalysisMethod.INCCNone:
                    break;
                case AnalysisMethod.CalibrationCurve:
                    CalibrationCurveRadioButton.Checked = true;
                    break;
                case AnalysisMethod.KnownA:
                    KnownAlphaRadioButton.Checked = true;
                    break;
                case AnalysisMethod.KnownM:
                    KnownMRadioButton.Checked = true;
                    break;
                case AnalysisMethod.Multiplicity:
                    MultiplicityRadioButton.Checked = true;
                    break;
                case AnalysisMethod.AddASource:
                    AddASourceRadioButton.Checked = true;
                    break;
                case AnalysisMethod.CuriumRatio:
                    CuriumRatioRadioButton.Checked = true;
                    break;
                case AnalysisMethod.TruncatedMultiplicity:
                    TruncatedMultiplicityRadioButton.Checked = true;
                    break;
            }

            if (am.Backup.IsNone() || am.Normal == am.Backup)
                am.Backup = am.GetSecondSelected();
            switch (am.Backup)
            {
                case AnalysisMethod.None:
                case AnalysisMethod.INCCNone:
                    break;
                case AnalysisMethod.CalibrationCurve:
                    BCalibrationCurveRadioButton.Checked = true;
                    break;
                case AnalysisMethod.KnownA:
                    BKnownAlphaRadioButton.Checked = true;
                    break;
                case AnalysisMethod.KnownM:
                    BKnownMRadioButton.Checked = true;
                    break;
                case AnalysisMethod.Multiplicity:
                    BMultiplicityRadioButton.Checked = true;
                    break;
                case AnalysisMethod.AddASource:
                    BAddASourceRadioButton.Checked = true;
                    break;
                case AnalysisMethod.CuriumRatio:
                    BCuriumRatioRadioButton.Checked = true;
                    break;
                case AnalysisMethod.TruncatedMultiplicity:
                    BTruncatedMultiplicityRadioButton.Checked = true;
                    break;
            }

            if (am.Auxiliary.IsNone() || am.Auxiliary == am.Backup)
                am.Auxiliary = am.GetThirdSelected();
            switch (am.Auxiliary)
            {
                case AnalysisMethod.None:
                case AnalysisMethod.INCCNone:
                    break;
                case AnalysisMethod.CalibrationCurve:
                    ACalibrationCurveRadioButton.Checked = true;
                    break;
                case AnalysisMethod.KnownA:
                    AKnownAlphaRadioButton.Checked = true;
                    break;
                case AnalysisMethod.KnownM:
                    AKnownMRadioButton.Checked = true;
                    break;
                case AnalysisMethod.Multiplicity:
                    AMultiplicityRadioButton.Checked = true;
                    break;
                case AnalysisMethod.AddASource:
                    AAddASourceRadioButton.Checked = true;
                    break;
                case AnalysisMethod.CuriumRatio:
                    ACuriumRatioRadioButton.Checked = true;
                    break;
                case AnalysisMethod.TruncatedMultiplicity:
                    ATruncatedMultiplicityRadioButton.Checked = true;
                    break;
            }
        }