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(); }
public HealthcareContext(PatientProfileDiffComponent owner) { _owner = owner; }