private void buttonToggle_Click(object sender, EventArgs e) { SolutionTypeEntry solEntry = listBoxSolutions.SelectedItem as SolutionTypeEntry; ProcessEntry pEntry = comboBoxProcesses.SelectedItem as ProcessEntry; Task.Run(() => { launcher.AttachAndLaunch(pEntry, solEntry); }); }