public void SelectRecordByXRef(string xref, bool delayedTransition = false) { GDMRecord record = fContext.Tree.XRefIndex_Find(xref); if (delayedTransition) { fDelayedTransitionRecord = record; return; } if (fDelayedTransitionRecord != null) { record = fDelayedTransitionRecord; fDelayedTransitionRecord = null; } IListView rView = (record == null) ? null : GetRecordsViewByType(record.RecordType); if (rView != null) { fView.ShowRecordsTab(record.RecordType); rView.Activate(); rView.SelectItem(record); } }
public void SelectRecordByXRef(string xref) { GEDCOMRecord record = fContext.Tree.XRefIndex_Find(xref); IListView rView = (record == null) ? null : GetRecordsViewByType(record.RecordType); if (rView != null) { fView.ShowRecordsTab(record.RecordType); rView.Activate(); rView.SelectItem(record); } }