public DumpingBuffer() { buffer = new List <Tuple <Codes, int> >(); dp = new DumpingProperty(); CD = new CollectionDescription(); DeltaCD = new DeltaCD(); }
public void ReceiveDataFromDumpingBuffer(DeltaCD dcd) { HistoricalDescription hd = new HistoricalDescription(); HistoricalProperty hp1 = new HistoricalProperty(); HistoricalProperty hp2 = new HistoricalProperty(); HistoricalProperty hp3 = new HistoricalProperty(); HistoricalProperty hp4 = new HistoricalProperty(); HistoricalProperty hp5 = new HistoricalProperty(); HistoricalProperty hp6 = new HistoricalProperty(); hd.ID = dcd.TransactionID; foreach (DumpingProperty dp in dcd.collectionDescription.DataSetBuffer1) { hp1.Code = dp.Code; hp1.HistoricalValue = dp.DumpingValue; hd.historicalProperties1.Add(hp1); } foreach (DumpingProperty dp in dcd.collectionDescription.DataSetBuffer2) { hp2.Code = dp.Code; hp2.HistoricalValue = dp.DumpingValue; hd.historicalProperties2.Add(hp2); } foreach (DumpingProperty dp in dcd.collectionDescription.DataSetBuffer3) { hp3.Code = dp.Code; hp3.HistoricalValue = dp.DumpingValue; hd.historicalProperties3.Add(hp3); } foreach (DumpingProperty dp in dcd.collectionDescription.DataSetBuffer4) { hp4.Code = dp.Code; hp4.HistoricalValue = dp.DumpingValue; hd.historicalProperties4.Add(hp4); } foreach (DumpingProperty dp in dcd.collectionDescription.DataSetBuffer5) { hp5.Code = dp.Code; hp5.HistoricalValue = dp.DumpingValue; hd.historicalProperties5.Add(hp5); } foreach (DumpingProperty dp in dcd.collectionDescription.DCollection) { hp6.Code = dp.Code; hp6.HistoricalValue = dp.DumpingValue; hd.HProperties.Add(hp6); } }