private void collaractive()
 {
     if (CollarCheckBox.Checked == true)
     {
         string CollarName = CollarCheckBox.Name;
         foreach (Control cb in this.Controls)
         {
             if (cb is CheckBox)
             {
                 if (cb.Name != CollarCheckBox.Name)
                 {
                     cb.Enabled = false;
                 }
             }
         }
         am.Normal    = AnalysisMethod.Collar;
         am.Backup    = AnalysisMethod.None;
         am.Auxiliary = AnalysisMethod.None;
     }
     else
     {
         bool   anyChecked = false;
         string CollarName = CollarCheckBox.Name;
         foreach (Control cb in this.Controls)
         {
             if (cb is CheckBox)
             {
                 if (cb.Name != CollarCheckBox.Name)
                 {
                     ((CheckBox)cb).Enabled = true;
                     anyChecked            |= ((CheckBox)cb).Checked;
                 }
             }
         }
         this.CollarCheckBox.Enabled = !anyChecked;
         if (am.AnySelected())
         {
             am.choices[0]  = false;
             am.choices[10] = false;
             am.Normal      = am.GetFirstSelected();
             am.Backup      = am.GetSecondSelected();
             am.Auxiliary   = am.GetThirdSelected();
         }
     }
 }
        private void collaractive()
        {
            // Modified 5/4/2017 -- Looks for the Collar check, then sets the AcquireParms to default of thermal for source type selectd. HN 5/4/2017
            string CollarName;

            if (CollarAmLiCheckBox.Checked == true)
            {
                CollarName = CollarAmLiCheckBox.Name;
                foreach (Control cb in this.Controls)
                {
                    if (cb is CheckBox)
                    {
                        if (cb.Name != CollarAmLiCheckBox.Name)
                        {
                            cb.Enabled = false;
                        }
                    }
                }
                am.Normal       = AnalysisMethod.CollarAmLi;
                am.Backup       = AnalysisMethod.None;
                am.Auxiliary    = AnalysisMethod.None;
                acq.collar_mode = (int)AnalysisDefs.CollarType.AmLiThermal;
                am.modified     = true;
            }
            else if (CollarCfCheckBox.Checked == true)
            {
                CollarName = CollarCfCheckBox.Name;
                foreach (Control cb in this.Controls)
                {
                    if (cb is CheckBox)
                    {
                        if (cb.Name != CollarCfCheckBox.Name)
                        {
                            cb.Enabled = false;
                        }
                    }
                }
                am.Normal       = AnalysisMethod.CollarCf;
                am.Backup       = AnalysisMethod.None;
                am.Auxiliary    = AnalysisMethod.None;
                acq.collar_mode = (int)AnalysisDefs.CollarType.CfThermal;
                acq.modified    = true;
                am.modified     = true;
            }
            else
            {
                //Check this. hn 1/26/17
                bool anyChecked = false;
                CollarName = CollarAmLiCheckBox.Name;
                foreach (Control cb in this.Controls)
                {
                    if (cb is CheckBox)
                    {
                        if (cb.Name != CollarAmLiCheckBox.Name && cb.Name != CollarCfCheckBox.Name)
                        {
                            ((CheckBox)cb).Enabled = true;
                            anyChecked            |= ((CheckBox)cb).Checked;
                        }
                    }
                }
                this.CollarAmLiCheckBox.Enabled = !anyChecked;
                this.CollarCfCheckBox.Enabled   = !anyChecked;
                if (am.AnySelected())
                {
                    am.choices[0]  = false;
                    am.choices[10] = false;

                    /*am.Normal = am.GetFirstSelected();
                     * am.Backup = am.GetSecondSelected();
                     * am.Auxiliary = am.GetThirdSelected();*/
                }
            }
        }