/// <summary>
 /// Handles the <see cref="IBackgroundTask.TaskEnded"/> event of the game discoverer.
 /// </summary>
 /// <remarks>
 /// If the game being searched for has not been found, this displays the not found UI.
 /// </remarks>
 /// <param name="sender">The object that raised the event.</param>
 /// <param name="e">A <see cref="TaskEndedEventArgs"/> describing the event arguments.</param>
 private void Detector_TaskEnded(object sender, TaskEndedEventArgs e)
 {
     if (InvokeRequired)
     {
         Invoke((Action <object, TaskEndedEventArgs>)Detector_TaskEnded, sender, e);
         return;
     }
     if (!Discoverer.IsFound(GameMode.ModeId) && !Discoverer.HasCandidates(GameMode.ModeId))
     {
         SetVisiblePanel(pnlNotFound);
     }
 }