/// <summary> /// Handles the <see cref="Control.Click"/> event of the reject button. /// </summary> /// <remarks> /// This indicate thes found path is incorrect, and another path should be found. /// </remarks> /// <param name="sender">The object that raised the event.</param> /// <param name="e">An <see cref="EventArgs"/> describing the event arguments.</param> private void butReject_Click(object sender, EventArgs e) { if (Discoverer.Status == TaskStatus.Complete) { SetVisiblePanel(pnlNotFound); } else { SetVisiblePanel(pnlSearching); } m_booGamePathDetected = false; Discoverer.Reject(GameMode.ModeId); }