Пример #1
0
 internal virtual void CopyFrom(TBaseRecordList <T> aBaseRecordList, TSheetInfo SheetInfo)
 {
     if (aBaseRecordList.FList == FList)
     {
         XlsMessages.ThrowException(XlsErr.ErrInternal);                                 //If they are, the for loop will grow ad infinitum.
     }
     if (aBaseRecordList != null)
     {
         FList.Capacity += aBaseRecordList.Count;
         for (int i = 0; i < aBaseRecordList.Count; i++)
         {
             T br = CloneRecord(aBaseRecordList[i], SheetInfo);
             FList.Add(br);
             OnAdd(br, i);
         }
     }
 }
Пример #2
0
 internal override void CopyFrom(TBaseRecordList <TCellRecord> aBaseRecordList, TSheetInfo SheetInfo)
 {
     base.CopyFrom(aBaseRecordList, SheetInfo);
     RowRecord = (TRowRecord)TRowRecord.Clone(((TCellAndRowRecordList)aBaseRecordList).RowRecord, SheetInfo);
 }