Esempio n. 1
0
 private void Dispose(bool flag)
 {
     if (flag)
     {
         _selectPresentationsCollection = null;
     }
 }
Esempio n. 2
0
 private void Dispose(bool flag)
 {
     if (flag)
     {
         _dicomPrinter        = null;
         _selectPresentations = null;
         _dicomPrinterConfigurationEditorComponent = null;
         if (_dicomPrintSession != null)
         {
             _dicomPrintSession.Dispose();
         }
     }
 }
Esempio n. 3
0
        internal static PrintScu.FilmSession GetFilmSession(SelectPresentationsInformationsCollection selects, DicomPrinter.Configuration config)
        {
            FilmBoxConfig fileBoxConfig = new FilmBoxConfig
            {
                config = config
            };

            List <PrintScu.IPrintItem> printItems = new List <PrintScu.IPrintItem>();

            using (IEnumerator <ISelectPresentationsInformation> enumerator = selects.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    ISelectPresentationsInformation presentationsInformation = enumerator.Current;
                    IImageSopProvider imageSopProvider = (IImageSopProvider)presentationsInformation.Image;
                    if (imageSopProvider != null)
                    {
                        printItems.Add(new DicomPrintItem(imageSopProvider.ImageSop));
                    }
                }
            }

            PrintScu.FilmSession session = new PrintScu.FilmSession(printItems, new PrintScu.CreateFilmBoxDelegate(fileBoxConfig.GetFilmBox));
            if (fileBoxConfig.config.Session.FilmDestination != FilmDestination.None)
            {
                session.FilmDestination = fileBoxConfig.config.Session.FilmDestination;
            }

            if (fileBoxConfig.config.Session.PrintPriority != PrintPriority.None)
            {
                session.PrintPriority = fileBoxConfig.config.Session.PrintPriority;
            }

            if (fileBoxConfig.config.Session.MediumType != MediumType.None)
            {
                session.MediumType = fileBoxConfig.config.Session.MediumType;
            }
            session.NumberOfCopies = fileBoxConfig.config.Session.NumberOfCopies;

            return(session);
        }
Esempio n. 4
0
 public DciomPrintApplicationComponent(SelectPresentationsInformationsCollection selectPresentations)
 {
     this._selectPresentations = selectPresentations;
     this._dicomPrinterTable   = new DicomPrinterTable(true);
     _dicomPrintSession        = null;
 }
Esempio n. 5
0
 public DicomPrintSession(DicomPrinter dicomPrinter, SelectPresentationsInformationsCollection selectPresentationsCollection)
 {
     this._dicomPrinter = dicomPrinter;
     this._selectPresentationsCollection = selectPresentationsCollection;
 }