private void Convert_Click(object sender, EventArgs e) { lblUpdate.Text = string.Format("Converting and downloading: 0/{0}", listCount); EnableConvert(false); flpDestination.Enabled = false; foreach (VideoInfos url in urlList) workingList.Add(url); urlList.Clear(); flpSettings.Enabled = false; Parameter param; if (chkAudio.Checked) { commandsList.AddCommand(Com.ExtractAudio); commandsList.AddCommand(Com.AudioQuality, new Parameter(0)); param = new Parameter(AudioFormats.GetAudioFormat(cmbOptions.SelectedItem.ToString())); } else param = new Parameter(VideoFormats.GetVideoFormat(cmbOptions.SelectedItem.ToString())); commandsList.AddCommand(chkVideo.Checked ? Com.VideoFormat : Com.AudioFormat, param); // Output commandsList.AddCommand(Com.Output, new Parameter(destinationPath)); Thread thread = new Thread(Download); thread.Start(); }