// Constructor public ProblemSelectionPage() { InitializeComponent(); // Create ProblemLoadingWorker (backgroundworker) ProblemLoadingWorker = new BackgroundWorker { WorkerReportsProgress = true }; ProblemLoadingWorker.DoWork += ProblemLoadingWorker_DoWork; ProblemLoadingWorker.RunWorkerCompleted += ProblemLoadingWorker_RunWorkerCompleted; ProblemLoadingWorker.ProgressChanged += ProblemLoadingWorker_ProgressChanged; ProblemData.LoadAtLeast(10); ProblemListBox_LoadAll(); }