private void OpenAttachment()
        {
            var document = this.SelectedDocument;

            if (document == null)
            {
                return;
            }

            BlockingOperation.Run(() =>
            {
                var localUri = AttachedDocument.DownloadFile(document);
                Process.Start(localUri);
            });
        }
        private void OpenAttachment()
        {
            var document = this.SelectedDocument;

            if (document == null)
            {
                return;
            }

            try
            {
                BlockingOperation.Run(() =>
                {
                    var localUri = AttachedDocument.DownloadFile(document);
                    Process.Start(localUri);
                });
            }
            catch (Exception ex)
            {
                ExceptionHandler.Report(ex, SR.ExceptionFailedToDisplayDocument, Host.DesktopWindow);
            }
        }
            /// <summary>
            /// Gets the URL of the specified attached document (must be a JSML encoded <see cref="AttachedDocumentSummary"/> object).
            /// </summary>
            /// <param name="jsml"></param>
            /// <returns></returns>
            public string GetAttachedDocumentUrl(string jsml)
            {
                var attachedDocumentSummary = JsmlSerializer.Deserialize <AttachedDocumentSummary>(jsml);

                return(AttachedDocument.DownloadFile(attachedDocumentSummary));
            }