public void SaveImage() { using (var tempImage = tempImageProvider.CreateTemporaryImage()) { if (asyncOutput != null) { // supported in Snagit v11 asyncOutput.StartAsyncOutput(); } try { var result = imageService.UploadImage(tempImage.Filename); if (!string.IsNullOrEmpty(result.OriginalImage)) { Process.Start(result.OriginalImage); } } finally { if (asyncOutput != null) { // supported in Snagit v11 asyncOutput.FinishAsyncOutput(true); } } } }
private void FinishAsyncOutput() { if (asyncOutput != null) { asyncOutput.FinishAsyncOutput(true); } }