private void UpdateForm_Load(object sender, EventArgs e) { DicomInfo targetFileElements = new DicomInfo(); List<Dictionary<string, string>> lookupElement = new List<Dictionary<string, string>>(); this.lblDicomTagName.Text = _dicomElementName; lookupElement = targetFileElements.getDicomElementInfo(_updateTargetFile); foreach (Dictionary<string, string> individualElements in lookupElement) { if (individualElements["Name"].Equals(_dicomElementName)) { this.lblDicomTag.Text = individualElements["Tag"]; this.lblDicomValueOriginal.Text = individualElements["Value"]; _dicomTag = individualElements["Tag"]; } } }
private void UpdateForm_Load(object sender, EventArgs e) { DicomInfo targetFileElements = new DicomInfo(); List <Dictionary <string, string> > lookupElement = new List <Dictionary <string, string> >(); this.lblDicomTagName.Text = _dicomElementName; lookupElement = targetFileElements.getDicomElementInfo(_updateTargetFile); foreach (Dictionary <string, string> individualElements in lookupElement) { if (individualElements["Name"].Equals(_dicomElementName)) { this.lblDicomTag.Text = individualElements["Tag"]; this.lblDicomValueOriginal.Text = individualElements["Value"]; _dicomTag = individualElements["Tag"]; } } }
private void lstvwFiles_SelectedIndexChanged(object sender, EventArgs e) { ListView.SelectedListViewItemCollection selectedDicomFile = this.lstvwFiles.SelectedItems; lstViewDicomData.Items.Clear(); foreach (ListViewItem item in selectedDicomFile) { List <Dictionary <string, string> > elements = new List <Dictionary <string, string> >(); ListViewItem lvItem = null; ListViewItem.ListViewSubItem[] subitem; _selectedFile = txtFolder.Text + "\\" + item.Text; elements = gdi.getDicomElementInfo(item.Text, txtFolder.Text); foreach (Dictionary <string, string> baseData in elements) { lvItem = new ListViewItem(baseData["Name"], 1); subitem = new ListViewItem.ListViewSubItem[] { new ListViewItem.ListViewSubItem(item, baseData["Tag"]), new ListViewItem.ListViewSubItem(item, baseData["Value"]) }; lvItem.SubItems.AddRange(subitem); lstViewDicomData.Items.Add(lvItem); } } this.colElementName.Width = -1; this.colElementValue.Width = -1; }