Exemplo n.º 1
0
        protected override void Import(ModalityData data, IUpdateContext context)
        {
            var m = LoadOrCreateModality(data.Id, data.Name, context);

            m.Deactivated   = data.Deactivated;
            m.Name          = data.Name;
            m.Facility      = string.IsNullOrEmpty(data.FacilityCode) ? null : FindFacility(data.FacilityCode, context);
            m.AETitle       = data.AETitle;
            m.DicomModality = data.DicomModality == null ? null : context.GetBroker <IEnumBroker>().Find <DicomModalityEnum>(data.DicomModality);
        }
        private string Present(ModalityData data)
        {
            var formatter = new ManualModalityDataFormatter
            {
                PresentOutliers      = false,
                PresentModeLocations = true,
                GroupSeparator       = Environment.NewLine
            };

            return(formatter.Format(data, "N2"));
        }