public static NormParameters GetCurrentNormParams(Detector det) { NormParameters np = new AnalysisDefs.NormParameters(); if ((det != null) && CentralizedState.App.DB.NormParameters.Map.ContainsKey(det)) { np.Copy(CentralizedState.App.DB.NormParameters.Map[det]); } return(np); }
public IDDCf252Normalization(AnalysisDefs.NormParameters npp) { np = npp; InitializeComponent(); RefDoublesDateTimePicker.Value = np.refDate; SourceIdTextBox.Text = np.sourceId; NormConstTextBox.ToValidate = NumericTextBox.ValidateType.Float; NormConstTextBox.NumberFormat = NumericTextBox.Formatter.F4; NormConstTextBox.NumStyles = System.Globalization.NumberStyles.AllowDecimalPoint; NormConstTextBox.Value = np.currNormalizationConstant.v; NormConstErrorTextBox.ToValidate = NumericTextBox.ValidateType.Float; NormConstErrorTextBox.NumberFormat = NumericTextBox.Formatter.F4; NormConstErrorTextBox.NumStyles = System.Globalization.NumberStyles.AllowDecimalPoint; NormConstErrorTextBox.Value = np.currNormalizationConstant.err; AccLimitPercentTextBox.ToValidate = NumericTextBox.ValidateType.Float; AccLimitPercentTextBox.NumberFormat = NumericTextBox.Formatter.F2; AccLimitPercentTextBox.NumStyles = System.Globalization.NumberStyles.AllowDecimalPoint; AccLimitPercentTextBox.Value = np.acceptanceLimitPercent; RefDoublesRateTextBox.ToValidate = NumericTextBox.ValidateType.Float; RefDoublesRateTextBox.NumberFormat = NumericTextBox.Formatter.F3; RefDoublesRateTextBox.NumStyles = System.Globalization.NumberStyles.AllowDecimalPoint; RefDoublesRateTextBox.Value = np.cf252RefDoublesRate.v; RefDoublesRateErrorTextBox.ToValidate = NumericTextBox.ValidateType.Float; RefDoublesRateErrorTextBox.NumberFormat = NumericTextBox.Formatter.F3; RefDoublesRateErrorTextBox.NumStyles = System.Globalization.NumberStyles.AllowDecimalPoint; RefDoublesRateErrorTextBox.Value = np.cf252RefDoublesRate.err; PrecisionLimitTextBox.ToValidate = NumericTextBox.ValidateType.Float; PrecisionLimitTextBox.NumberFormat = NumericTextBox.Formatter.F2; PrecisionLimitTextBox.NumStyles = System.Globalization.NumberStyles.AllowDecimalPoint; PrecisionLimitTextBox.Value = np.initSrcPrecisionLimit; AccLimitStdDevTextBox.ToValidate = NumericTextBox.ValidateType.Float; AccLimitStdDevTextBox.NumberFormat = NumericTextBox.Formatter.F2; AccLimitStdDevTextBox.NumStyles = System.Globalization.NumberStyles.AllowDecimalPoint; AccLimitStdDevTextBox.Value = np.acceptanceLimitStdDev; MovementDistanceTextBox.ToValidate = NumericTextBox.ValidateType.Float; MovementDistanceTextBox.NumberFormat = NumericTextBox.Formatter.F2; MovementDistanceTextBox.NumStyles = System.Globalization.NumberStyles.AllowDecimalPoint; MovementDistanceTextBox.Value = np.biasTestAddasrcPosition; AddASourceCheckBox.Checked = np.biasTestUseAddasrc; }
public static NormParameters GetCurrentNormParams(Detector det) { NormParameters np = new AnalysisDefs.NormParameters(); if ((det != null) && CentralizedState.App.DB.NormParameters.Map.ContainsKey(det)) np.Copy(CentralizedState.App.DB.NormParameters.Map[det]); return np; }