public void Copy() { CopyData.Clear(); foreach (var item in Selection.ToList()) { CopyData.Add(item); } }
public void Clear() { IndexData = null; PalletData = null; ColumnMeta = null; RecordsData = null; ForeignKeyData = null; CommonData = null; _Records?.Clear(); StringTable?.Clear(); SparseEntries?.Clear(); CopyData?.Clear(); }
public void Clear() { id_list_data = null; PalletData = null; ColumnMeta = null; RecordsData = null; refData = null; ForeignKeyData = null; CommonData = null; _Records?.Clear(); StringTable?.Clear(); offset_map_Entries?.Clear(); CopyData?.Clear(); }
private IEnumerable <IDBRow> GetCopyRows() { if (CopyData == null || CopyData.Count == 0) { yield break; } // fix temp ids _Records = _Records.ToDictionary(x => x.Value.Id, x => x.Value); foreach (var copyRow in CopyData) { IDBRow rec = _Records[copyRow.Value].Clone(); rec.Data = rec.Data.Clone(); rec.Id = copyRow.Key; _Records[rec.Id] = rec; yield return(rec); } CopyData.Clear(); }