Exemple #1
0
 public void CopyImage()
 {
     if (PrintPresentationImagesHost.ImageViewerComponent == null)
     {
         ExceptionHandler.Report(new Exception("请启动打印排版界面"), this.Context.DesktopWindow);
         return;
     }
     PrintPresentationImagesHost.AddPresentationImage(this.Context.Viewer.SelectedPresentationImage);
     Draw();
 }
Exemple #2
0
        public void CopyDisplaySet()
        {
            if (PrintPresentationImagesHost.ImageViewerComponent == null)
            {
                ExceptionHandler.Report(new Exception("请启动打印排版界面"), this.Context.DesktopWindow);
                return;
            }

            foreach (IPresentationImage action in this.Context.Viewer.SelectedPresentationImage.ParentDisplaySet.PresentationImages)
            {
                PrintPresentationImagesHost.AddPresentationImage(action);
            }

            Draw();
        }
Exemple #3
0
        public void CopyAll()
        {
            if (PrintPresentationImagesHost.ImageViewerComponent == null)
            {
                ExceptionHandler.Report(new Exception("请启动打印排版界面"), this.Context.DesktopWindow);
                return;
            }
            foreach (IImageSet imageSet in this.Context.Viewer.PhysicalWorkspace.LogicalWorkspace.ImageSets)
            {
                foreach (IDisplaySet displaySet in imageSet.DisplaySets)
                {
                    foreach (IPresentationImage action in displaySet.PresentationImages)
                    {
                        PrintPresentationImagesHost.AddPresentationImage(action);
                    }
                }
            }

            Draw();
        }