private SortedList <float, Mark>[] copydata(SortedList <float, Mark>[] dat) { SortedList <float, Mark>[] temp = new SortedList <float, Mark> [10]; for (int i = 0; i < 10; i++) { temp[i] = new SortedList <float, Mark>(); for (int j = 0; j < dat[i].Count; j++) { ExMark exmk = dat[i].Values[j] as ExMark; if (exmk == null) { temp[i].Add(dat[i].Values[j].Time, dat[i].Values[j].Clone()); } else { temp[i].Add(dat[i].Values[j].Time, exmk.ExClone()); } } } return(temp); }
public void PreserveData() { SortedList <float, Mark>[] temp = new SortedList <float, Mark> [10]; for (int i = 0; i < 10; i++) { temp[i] = new SortedList <float, Mark>(); for (int j = 0; j < data[i].Count; j++) { ExMark exmk = data[i].Values[j] as ExMark; if (exmk == null) { temp[i].Add(data[i].Values[j].Time, data[i].Values[j].Clone()); } else { temp[i].Add(data[i].Values[j].Time, exmk.ExClone()); } } } storeddata.add(temp); }