private void Dispose(bool flag) { if (flag) { _selectPresentationsCollection = null; } }
private void Dispose(bool flag) { if (flag) { _dicomPrinter = null; _selectPresentations = null; _dicomPrinterConfigurationEditorComponent = null; if (_dicomPrintSession != null) { _dicomPrintSession.Dispose(); } } }
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); }
public DciomPrintApplicationComponent(SelectPresentationsInformationsCollection selectPresentations) { this._selectPresentations = selectPresentations; this._dicomPrinterTable = new DicomPrinterTable(true); _dicomPrintSession = null; }
public DicomPrintSession(DicomPrinter dicomPrinter, SelectPresentationsInformationsCollection selectPresentationsCollection) { this._dicomPrinter = dicomPrinter; this._selectPresentationsCollection = selectPresentationsCollection; }