public void BindData(DicomDataSet DICOMDataset) { try { DICOMServerEventLogFormsFormatter EventLogFormsFormatter; EventLogFormsFormatter = new DICOMServerEventLogFormsFormatter( ); __DICOMDataset = DICOMDataset; rchtxtDatasetView.Text = EventLogFormsFormatter.FormatDataSet(DICOMDataset); } catch (Exception exception) { System.Diagnostics.Debug.Assert(false); throw exception; } }
public void BindData ( DicomEventLogDataSet.DICOMServerEventLogRow sourceRow ) { try { DICOMServerEventLogFormsFormatter EventLogFormsFormatter; EventLogFormsFormatter = new DICOMServerEventLogFormsFormatter( ); if (null == sourceRow) { return; } SourceRow = sourceRow; txtServerAETitle.Text = (sourceRow.IsServerAETitleNull( )) ? string.Empty : EventLogFormsFormatter.FormatServerAETitle(sourceRow.ServerAETitle); txtServerIPAddress.Text = (sourceRow.IsServerIPAddressNull( )) ? string.Empty : EventLogFormsFormatter.FormatServerIPAddress(sourceRow.ServerIPAddress); txtServerPort.Text = (sourceRow.IsServerPortNull( )) ? string.Empty : EventLogFormsFormatter.FormatServerPort(sourceRow.ServerPort); rchtxtDescription.Text = (sourceRow.IsDescriptionNull( )) ? string.Empty : EventLogFormsFormatter.FormatDescription(sourceRow.Description); txtDateTime.Text = (sourceRow.IsEventDateTimeNull( )) ? string.Empty : EventLogFormsFormatter.FormatEventDateTime(sourceRow.EventDateTime); txtClientAETitle.Text = (sourceRow.IsClientAETitleNull( )) ? string.Empty : EventLogFormsFormatter.FormatClientAETitle(sourceRow.ClientAETitle); txtClientHostAddress.Text = (sourceRow.IsClientHostAddressNull( )) ? string.Empty : EventLogFormsFormatter.FormatClientHostAddress(sourceRow.ClientHostAddress); txtClientPort.Text = (sourceRow.IsClientPortNull( )) ? string.Empty : EventLogFormsFormatter.FormatClientPort(sourceRow.ClientPort); txtType.Text = EventLogFormsFormatter.FormatEventType(sourceRow.Type); btnViewDataSet.Enabled = !sourceRow.IsDatasetPathNull( ) || (null != GetEventDataset(( int )SourceRow.EventID)); } catch (Exception exception) { System.Diagnostics.Debug.Assert(false); throw exception; } }