public virtual object[] GetItemData(object rowData) { GDMRecord rec = rowData as GDMRecord; if (rec == null) { return(null); } Fetch(rec); object[] result = new object[fColumnsMap.Count]; result[0] = rec.GetXRefNum(); int num = fColumnsMap.Count; for (int i = 1; i < num; i++) { MapColumnRec colrec = fColumnsMap[i]; // aColIndex - from 1 ListColumn cs = fListColumns[colrec.ColType]; object val = GetColumnValueEx(colrec.ColType, colrec.ColSubtype, true); string res = ConvertColumnValue(val, cs); result[i] = res; } return(result); }
private static bool CheckRecordXRef(GDMRecord record) { string stdSign = GEDCOMUtils.GetSignByRecord(record); string xrefNum = record.GetXRefNum(); string recXRef = record.XRef; return((recXRef == stdSign + xrefNum) && record.GetId() >= 0); }
public IListItem CreateListItem(object rowData, CreateListItemHandler handler) { GDMRecord record = rowData as GDMRecord; if (record == null || handler == null) { return(null); } return(handler(record.GetXRefNum(), record)); }