// ------------------------------- // - Begin public methods region - // ------------------------------- /// <summary> /// VisitEnter method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="dataSet">The DataSet instance to visit.</param> /// <returns> /// true: traverse the children of this instance. /// false: do not traverse the children of this instance. /// </returns> public override bool VisitEnterDataSet(DataSet dataSet) { string description = "Check for attributes in the DICOM file that are not definined in the raw xml definition files"; this.tableForDetailedResults.AddHeader(description, description, description, description); this.tableForDetailedResults.AddHeader("______Tag______", "__VR__", " Name ", " Comments "); this.tableForDetailedResults.CellItemSeperator = "<br><br>"; this.tableForSummaryResults.AddHeader(description, description, description, description); this.tableForSummaryResults.AddHeader("______Tag______", "__VR__", " Name ", " Comments "); this.tableForSummaryResults.CellItemSeperator = "<br><br>"; return (true); }
/// <summary> /// VisitLeave method in the context of the "Hierarchical Visitor Pattern". /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm". /// </summary> /// <param name="dataSet">The DataSet instance to visit.</param> /// <returns> /// true: continue traversing the siblings of the supplied instance. /// false: stop traversing the siblings of the supplied instance. /// </returns> public override bool VisitLeaveDataSet(DataSet dataSet) { this.dicomThread.WriteHtml(this.tableForSummaryResults.ConvertToHtml(), true, false); this.dicomThread.WriteHtml(this.tableForDetailedResults.ConvertToHtml(), false, true); return (true); }