public void ExportResults(BitmapSource calibrationResult, int qualityRating)
 {
     try
     {
         var args = new CalibrationResultEventArgs(calibrationResult, qualityRating);
         args.RoutedEvent = ResultEvent;
         args.Source = this;
         RaiseEvent(args);
     }
     catch (Exception ex)
     {
         Console.WriteLine("CalibrationCommands, could not raise ExportResults, Message: " + ex.Message);
     }
 }
 private void OnCalibrationResult(object sender, CalibrationResultEventArgs e)
 {
     Tracker.Instance.Server.SendMessage(Commands.CalibrationQuality, e.RatingValue);
 }