Beispiel #1
0
        private void lbFailedImage_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            var sopInstanceUid = lbFailedImage.SelectedItem.ToString();
            var elements       = dicomServiceWorker.FindReceivedDicomElementsBySopInstanceUid(sopInstanceUid);

            dicomServiceWorkerUser.ShowElements(elements);
        }
Beispiel #2
0
        private void tlvCache_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            var node = tlvCache.SelectedNodes[0];

            if (node == null)
            {
                return;
            }


            var receivedDicomElements = node.AdditionalData as ReceivedDicomElements;

            if (receivedDicomElements == null)
            {
                return;
            }


            if (receivedDicomElements.ImageSource == ImageSource.StorageCommitment)
            {
                var form = new StorageCommitmentForm(dicomServiceWorkerUser, dicomServiceWorker, receivedDicomElements);
                form.ShowDialog();
            }
            else
            {
                dicomServiceWorkerUser.ShowElements(receivedDicomElements);
                if (e.Button != MouseButtons.Right)
                {
                    tlvCache.Nodes.Remove(node);
                    tlvCache.Refresh();
                }
                else
                {
                    Close();
                }
            }
        }