Пример #1
0
        protected override void OnReceiveNGetResponse(byte presentationID, ushort messageIdRespondedTo, DicomUID affectedClass, DicomUID affectedInstance,
                                                      DcmDataset dataset, DcmStatus status)
        {
            if (OnPrintGetPrinterStatusResponse != null)
            {
                var printerstatus = new DcmPrinterStatus(dataset);
                _acceptedPrinterStatus = OnPrintGetPrinterStatusResponse(printerstatus, status);
            }

            if (_acceptedPrinterStatus == false)
            {
                SendReleaseRequest();
                return;
            }

            CreateFilmSession();
        }
Пример #2
0
        protected override void OnReceiveNGetResponse(byte presentationID, ushort messageIdRespondedTo, DicomUID affectedClass, DicomUID affectedInstance,
            DcmDataset dataset, DcmStatus status)
        {
            if (OnPrintGetPrinterStatusResponse != null)
            {
                DcmPrinterStatus printerstatus = new DcmPrinterStatus(dataset);
                _acceptedPrinterStatus = OnPrintGetPrinterStatusResponse(printerstatus, status);
            }

            if (_acceptedPrinterStatus == false)
            {
                SendReleaseRequest();
                return;
            }

            CreateFilmSession();
        }