コード例 #1
0
        public override void Start()
        {
            // create the diff component
            _diffComponentHost = new ChildComponentHost(this.Host, _diffComponent = new PatientProfileDiffComponent());
            _diffComponentHost.StartComponent();

            // add all target profiles - ensure the initially selected one is at the top of the list
            _targetProfileTable = new PatientProfileTable();
            _targetProfileTable.Items.Add(_selectedTargetProfile);
            foreach (var profile in _targetProfiles)
            {
                if (!profile.PatientProfileRef.Equals(_selectedTargetProfile.PatientProfileRef, true))
                {
                    _targetProfileTable.Items.Add(profile);
                }
            }

            _reconciliationProfileTable = new ReconciliationCandidateTable();
            foreach (var match in _candidates)
            {
                var entry = new ReconciliationCandidateTableEntry(match);
                entry.CheckedChanged += CandidateCheckedChangedEventHandler;
                _reconciliationProfileTable.Items.Add(entry);
            }

            base.Start();
        }
コード例 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ReconciliationConfirmComponent(IList <PatientProfileSummary> targets, IList <PatientProfileSummary> sources)
        {
            _sourceProfiles = new PatientProfileTable();
            _sourceProfiles.Items.AddRange(sources);

            _targetProfiles = new PatientProfileTable();
            _targetProfiles.Items.AddRange(targets);
        }