/// <summary> /// Called when the achievement detection have completed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args"> /// The <see cref="DetectionCompletedEventArgs"/> instance containing the event data. /// </param> protected static void OnDetectionCompleted(object sender, DetectionCompletedEventArgs args) { if (DetectionCompleted != null) { DetectionCompleted(sender, args); } }
/// <summary> /// Handles the DetectionCompleted event of the DetectionDispatcher control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e"> /// The <see cref="DetectionCompletedEventArgs"/> instance containing the event data. /// </param> private void DetectionDispatcher_DetectionCompleted(object sender, DetectionCompletedEventArgs e) { StatusBar.SetText(string.Format("{0} achievements tested in {1} milliseconds", e.AchievementsTested, e.ElapsedMilliseconds)); }
private static void DetectionDispatcher_DetectionCompleted(object sender, DetectionCompletedEventArgs e) { System.Console.WriteLine(string.Format("{0} achievements tested in {1} milliseconds", e.AchievementsTested, e.ElapsedMilliseconds)); }