public void CopyImage() { if (PrintPresentationImagesHost.ImageViewerComponent == null) { ExceptionHandler.Report(new Exception("请启动打印排版界面"), this.Context.DesktopWindow); return; } PrintPresentationImagesHost.AddPresentationImage(this.Context.Viewer.SelectedPresentationImage); Draw(); }
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(); }
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(); }