Ejemplo n.º 1
0
        public void OnLoadAsyncCallback(Exception ex)
        {
            if (ex != null)
            {
                //An error has occurred
                System.Diagnostics.Debug.WriteLine(ex.StackTrace);
                MessageBox.Show("无法预览文件" + ex.Message);
                this.DialogResult = false;
            }

            MyDocumentViewer.SetFitMode(DocumentViewer.FitModes.Panel, DocumentViewer.FitModes.None);
            Busy.IsBusy = false;
        }
Ejemplo n.º 2
0
        public void OnLoadAsyncCallback(Exception ex)
        {
            if (ex != null)
            {
                //An error has occurred
                Busy.IsBusy = false;
                System.Diagnostics.Debug.WriteLine(ex.StackTrace);
                NotifyWindow lNotifyWIndow = new NotifyWindow("无法预览文件", "等待后台处理,请联系管理员!");
                lNotifyWIndow.Show();
                //Busy.IsBusy = false;
                //this.DialogResult = false;
            }

            MyDocumentViewer.SetFitMode(DocumentViewer.FitModes.Panel, DocumentViewer.FitModes.None);
            Busy.IsBusy = false;
        }