private void FileOpen_Click(Object sender, RoutedEventArgs e) { OpenFileDialog fileOpener = new OpenFileDialog(); fileOpener.Filter = "All Supported Files|*.bsp;*.d3dbsp;*.wad|BSP Files|*.bsp;*.d3dbsp|WAD Files|*.wad|All Files|*.*"; fileOpener.Multiselect = true; // Process open file dialog box results if (fileOpener.ShowDialog() == true) { string[] filesToOpen = fileOpener.FileNames; for(int i=0;i<filesToOpen.Length;i++) { DecompilerThread thread = new DecompilerThread(new FileInfo(filesToOpen[i]), finished + active.Count + jobQueue.Count, Settings.openAs); Job theJob = new Job(finished + active.Count + jobQueue.Count, filesToOpen[i], thread); theJob.PropertyChanged += new PropertyChangedEventHandler(UpdateTaskbar); thread.error += new ErrorHandler(Error); jobQueue.Enqueue(thread); jobs.Add(theJob); } StartNextIfAble(); } }