Beispiel #1
0
        private void AddReferencedStudy(ReferencedStudySequence rs)
        {
            ListViewItem item = listViewReferencedStudy.Items.Add(rs.ReferencedSOPClassUID);

            item.SubItems.Add(rs.ReferencedSOPInstanceUID);
            item.Tag = rs;
        }
Beispiel #2
0
        private void buttonEditRS_Click(object sender, EventArgs e)
        {
            ListViewItem            item = listViewReferencedStudy.SelectedItems[0];
            ReferencedStudySequence rs   = item.Tag as ReferencedStudySequence;
            ObjectEditor <ReferencedStudySequence> editor = new ObjectEditor <ReferencedStudySequence>(rs, "Referenced Study Sequence");

            if (editor.ShowDialog(this) == DialogResult.OK)
            {
                item.Text             = editor.EditObject.ReferencedSOPClassUID;
                item.SubItems[1].Text = editor.EditObject.ReferencedSOPInstanceUID;
                item.Tag = editor.EditObject;
            }
        }