private void AAVSOVSXButton_Click(object sender, EventArgs e)
        {
            Utility.ButtonRed(AAVSOVSXButton);
            AAVSOVSXButton.Text = "Busy";
            VSXManagement vsxAcquisition = new VSXManagement();

            if (NovaSelectButton.Checked)
            {
                vsxAcquisition.SearchType = VSXManagement.NOVA_VTYPE;
                vsxAcquisition.SDBSuspect = "0,1,2";
            }
            if (AGNSelectButton.Checked)
            {
                vsxAcquisition.SearchType = VSXManagement.AGN_VTYPE;
                vsxAcquisition.SDBSuspect = "0,1,2";
            }
            if (QSOSelectButton.Checked)
            {
                vsxAcquisition.SearchType = VSXManagement.QSO_VTYPE;
                vsxAcquisition.SDBSuspect = "0,1,2";
            }
            if (BLLACSelectButton.Checked)
            {
                vsxAcquisition.SearchType = VSXManagement.BLLAC_VTYPE;
                vsxAcquisition.SDBSuspect = "0,1,2";
            }
            if (SuspectsSelectButton.Checked)
            {
                vsxAcquisition.SearchType = VSXManagement.SUSPECTS_VTYPE;
                vsxAcquisition.SDBSuspect = "1";
            }

            if (vsxAcquisition.GetAndSet())
            {
                if (TextFileRadioButton.Checked)
                {
                    SDBTextFileDialog.FileName = vsxAcquisition.SDBIdentifier + " Database.txt";
                    DialogResult odr = SDBTextFileDialog.ShowDialog();
                    if (odr == DialogResult.OK)
                    {
                        string textFileName = SDBTextFileDialog.FileName;
                        if (TextFileRadioButton.Checked)
                        {
                            vsxAcquisition.BuildSDBTextFile(textFileName);
                        }
                    }
                }
                else
                {
                    vsxAcquisition.BuildSDBClipboard();
                }
            }
            else
            {
                MessageBox.Show("Failed to find any targets");
            }
            AAVSOVSXButton.Text = "VSX";
            Utility.ButtonGreen(AAVSOVSXButton);
        }
        private void TNSReaderButton_Click(object sender, EventArgs e)
        {
            Utility.ButtonRed(TNSReaderButton);
            TNSReaderButton.Text = "Busy";
            SearchTNS tnsAcquisition = new SearchTNS();

            tnsAcquisition.SearchBackDays   = (int)SearchDaysBox.Value;
            tnsAcquisition.SearchClassified = ATSelectButton.Checked;
            tnsAcquisition.SearchSN         = SuperNovaSelectButton.Checked;
            tnsAcquisition.IsNGCHosted      = NGCHostBox.Checked;
            if (Max50Button.Checked)
            {
                tnsAcquisition.MaxRecordCount = 50;
            }
            else if (Max100Button.Checked)
            {
                tnsAcquisition.MaxRecordCount = 100;
            }
            else if (Max500Button.Checked)
            {
                tnsAcquisition.MaxRecordCount = 500;
            }

            if (tnsAcquisition.GetAndSet())
            {
                if (TextFileRadioButton.Checked)
                {
                    SDBTextFileDialog.FileName = tnsAcquisition.SDBIdentifier + " Database.txt";
                    DialogResult odr = SDBTextFileDialog.ShowDialog();
                    if (odr == DialogResult.OK)
                    {
                        string textFileName = SDBTextFileDialog.FileName;
                        if (TextFileRadioButton.Checked)
                        {
                            tnsAcquisition.BuildSDBTextFile(textFileName);
                        }
                    }
                }
                else
                {
                    tnsAcquisition.BuildSDBClipboard();
                }
            }
            else
            {
                MessageBox.Show("Failed to find any targets");
            }
            TNSReaderButton.Text = "TNS";
            Utility.ButtonGreen(TNSReaderButton);
        }
        private void ExoButton_Click(object sender, EventArgs e)
        {
            Utility.ButtonRed(ExoButton);
            ExoButton.Text = "Busy";
            SearchEXO exoAcquisition = new SearchEXO();

            if (ConfirmedButton.Checked)
            {
                exoAcquisition.SearchType = SearchEXO.PSSearchType.Confirmed;
            }
            else
            {
                exoAcquisition.SearchType = SearchEXO.PSSearchType.Candidate;
            }

            if (exoAcquisition.GetAndSet())
            {
                if (TextFileRadioButton.Checked)
                {
                    SDBTextFileDialog.FileName = exoAcquisition.SDBIdentifier + " Database.txt";
                    DialogResult odr = SDBTextFileDialog.ShowDialog();
                    if (odr == DialogResult.OK)
                    {
                        string textFileName = SDBTextFileDialog.FileName;
                        if (TextFileRadioButton.Checked)
                        {
                            exoAcquisition.BuildSDBTextFile(textFileName);
                        }
                    }
                }
                else
                {
                    exoAcquisition.BuildSDBClipboard();
                }
            }
            else
            {
                MessageBox.Show("Failed to find any targets");
            }
            ExoButton.Text = "EXO";
            Utility.ButtonGreen(ExoButton);
        }
 private void NEOButton_Click(object sender, EventArgs e)
 {
     Utility.ButtonRed(NEOButton);
     NEOButton.Text = "Busy";
     if (NEOCPButton.Checked)
     {
         SearchNEO neoAcquisition = new SearchNEO();
         neoAcquisition.SearchType = "NEO";
         if (neoAcquisition.GetAndSet())
         {
             if (TextFileRadioButton.Checked)
             {
                 SDBTextFileDialog.FileName = neoAcquisition.SDBIdentifier + " Database.txt";
                 DialogResult odr = SDBTextFileDialog.ShowDialog();
                 if (odr == DialogResult.OK)
                 {
                     string textFileName = SDBTextFileDialog.FileName;
                     if (TextFileRadioButton.Checked)
                     {
                         neoAcquisition.BuildSDBTextFile(textFileName);
                     }
                 }
             }
             else
             {
                 neoAcquisition.BuildSDBClipboard();
             }
         }
         else
         {
             MessageBox.Show("Failed to find any targets");
         }
     }
     else
     {
         SearchScout neoAcquisition = new SearchScout();
         neoAcquisition.SearchType = "Scout";
         if (neoAcquisition.GetAndSet())
         {
             if (TextFileRadioButton.Checked)
             {
                 SDBTextFileDialog.FileName = neoAcquisition.SDBIdentifier + " Database.txt";
                 DialogResult odr = SDBTextFileDialog.ShowDialog();
                 if (odr == DialogResult.OK)
                 {
                     string textFileName = SDBTextFileDialog.FileName;
                     if (TextFileRadioButton.Checked)
                     {
                         neoAcquisition.BuildSDBTextFile(textFileName);
                     }
                 }
             }
             else
             {
                 neoAcquisition.BuildSDBClipboard();
             }
         }
         else
         {
             MessageBox.Show("Failed to find any targets");
         }
     }
     Utility.ButtonGreen(NEOButton);
     NEOButton.Text = "NEO";
 }