private void StandardSearch(bool doAsync) { ProgramArgs args; try { args = GetParamsFromScreen(); } catch (Exception e3) { MessageBox.Show(e3.Message); return; } //Fire up the stuff Engine = new ProgramEngine(args); //Lets pass this info in case the user is providing a peptide list Engine.PeptideList = richTextBoxPeptideList.Text; if (doAsync) { backgroundWorkerProgramMainForm.RunWorkerAsync(); timerProgramMainForm.Enabled = true; tabControl1.Enabled = false; } else { Engine.RunFullAnalysisMAlginer(); } }