/* private DicomDataSet readDicom(string name) * { * string dicomPath = path + "\\Dicom\\" + name; * //DicomImage dImage = dicomViewer1.Images.Read(dicomPath); * DicomDataSet dDSet = dicomViewer1.Images.Read(dicomPath); * List<DicomAttribute> allAttributes = dDSet.ToList(); * String toShow = ""; * for (int i = 0; i < allAttributes.Count; i++) * { * string group = allAttributes[i].Group.ToString("X4");//first 4 numbers * string element = allAttributes[i].Element.ToString("X4");//second 4 numbers * string key = allAttributes[i].Keyword;//textual * string value = allAttributes[i].ToString(); * toShow = toShow + group + "-" + element + "; " + key + "--->" + value + "\n"; + } + //MessageBox.Show(toShow); + return dDSet; + } */ private void fillStandard() { this.Visits.Rows.Clear(); this.Visits.Rows.Add(); this.Visits.Rows[0].Cells[0].Value = "Date"; this.Visits.Rows.Add(); this.Visits.Rows[1].Cells[0].Value = "Result"; if (thisV != null) { this.Visits.Rows[1].Cells[1].Value = thisV.getResult(); this.Visits.Rows[0].Cells[1].Value = thisV.getDate(); } fillOptionals(); }
private void fillVisits() { if (thisP != null) { allVisits = thisP.getVisits(); this.Visits.Rows.Clear(); this.Visits.AllowUserToAddRows = false; int indexRow = 0; for (int i = 0; i < allVisits.Count; i++) { Visit thisV = allVisits[i]; this.Visits.Rows.Add(); this.Visits.Rows[indexRow].Cells[1].Value = thisV.getDate(); this.Visits.Rows[indexRow].Cells[2].Value = thisV.getResult(); indexRow++; } } else { this.Visits.Hide(); this.AddVisit.Hide(); } }