예제 #1
0
        private void sendButton_Click(object sender, EventArgs e)
        {
            DicomSender    send            = new DicomSender(this.target_ip_textbox.Text, int.Parse(this.target_port_textbox.Text), this.target_ae_textbox.Text, this.local_ae_textbox.Text);
            OpenFileDialog openFileDialog1 = new OpenFileDialog();
            DialogResult   result          = openFileDialog1.ShowDialog(); // Show the dialog.

            if (result == DialogResult.OK)                                 // Test result.
            {
                this.sendFile.Text = openFileDialog1.FileName;
                send.sendDicom(DicomFile.Open(@"" + this.sendFile.Text));
            }
        }
        public DicomCStoreResponse OnCStoreRequest(DicomCStoreRequest request)
        {
            DicomFile file = request.File;

            //call anonymization method
            //update crosswalk (might be part of anonymization)
            //send file to host
            DicomSender send = new DicomSender("10.7.201.228", 5000, "TONY", "AE_TITLE");

            send.sendDicom(file);

            MessageBox.Show("recieved dicom file: " + file.Dataset.Get <String>(DicomTag.DateTime));
            return(new DicomCStoreResponse(request, DicomStatus.Success));
        }
        public DicomCStoreResponse OnCStoreRequest(DicomCStoreRequest request)
        {

            DicomFile file = request.File;

            //call anonymization method
            //update crosswalk (might be part of anonymization)
            //send file to host
            DicomSender send = new DicomSender("10.7.201.228",5000, "TONY", "AE_TITLE");
            send.sendDicom(file);
            
            MessageBox.Show("recieved dicom file: " + file.Dataset.Get<String>(DicomTag.DateTime));
            return new DicomCStoreResponse(request, DicomStatus.Success);

        }
예제 #4
0
        private void sendButton_Click(object sender, EventArgs e)
        {
            DicomSender send = new DicomSender(this.target_ip_textbox.Text, int.Parse(this.target_port_textbox.Text), this.target_ae_textbox.Text, this.local_ae_textbox.Text);
            OpenFileDialog openFileDialog1 = new OpenFileDialog();
            DialogResult result = openFileDialog1.ShowDialog(); // Show the dialog.
            if (result == DialogResult.OK) // Test result.
            {
                this.sendFile.Text = openFileDialog1.FileName;
                send.sendDicom(DicomFile.Open(@"" + this.sendFile.Text));

            }
        }