Exemple #1
0
        private void AcquireNormClick(object sender, RoutedEventArgs e)
        {
            IDDAcquireBias f = new IDDAcquireBias();

            /* if an Initial source measurement has not been done for this detector, do not allow a bias test to be performed. */
            if ((f.np.biasMode == NormTest.AmLiSingles) &&
                (f.np.amliRefSinglesRate <= 0.0))
            {
                MessageBox.Show(String.Format("Normalization measurements for detector {0} cannot be done until an Initial Source measurement has been made, or the reference singles rate and date are entered manually.", f.Acq.detector_id));
            }
            else if ((f.np.biasMode == NormTest.Cf252Doubles) &&
                     (f.np.cf252RefDoublesRate.v <= 0.0))
            {
                MessageBox.Show(String.Format("Normalization measurements for detector {0} cannot be done until an Initial Source measurement has been made, or the reference doubles rate and date are entered manually.", f.Acq.detector_id));
            }
            else if ((f.np.biasMode == NormTest.Cf252Singles) &&
                     (f.np.cf252RefDoublesRate.v <= 0.0))
            {
                MessageBox.Show(String.Format("Normalization measurements for detector {0} cannot be done until an Initial Source measurement has been made, or the reference singles rate and date are entered manually.", f.Acq.detector_id));
            }
            else
            {
                f.ShowDialog();
            }
        }
Exemple #2
0
        private void AcquireNormClick(object sender, RoutedEventArgs e)
        {
            IDDAcquireBias f = new IDDAcquireBias();          
	        /* if an Initial source measurement has not been done for this detector, do not allow a bias test to be performed. */
	        if ((f.np.biasMode== NormTest.AmLiSingles) &&
		        (f.np.amliRefSinglesRate <= 0.0))
                MessageBox.Show(String.Format("Normalization measurements for detector {0} cannot be done until an Initial Source measurement has been made, or the reference singles rate and date are entered manually.", f.Acq.detector_id));
	        else if ((f.np.biasMode== NormTest.Cf252Doubles) &&
		        (f.np.cf252RefDoublesRate.v <= 0.0))
                MessageBox.Show(String.Format("Normalization measurements for detector {0} cannot be done until an Initial Source measurement has been made, or the reference doubles rate and date are entered manually.", f.Acq.detector_id));
	        else if ((f.np.biasMode== NormTest.Cf252Singles) &&
		        (f.np.cf252RefDoublesRate.v <= 0.0))
                MessageBox.Show(String.Format("Normalization measurements for detector {0} cannot be done until an Initial Source measurement has been made, or the reference singles rate and date are entered manually.", f.Acq.detector_id));
            else
                f.ShowDialog();
        }