public void ChangeData(int index, JData data) { if (index < 0) { return; } this.Data.RemoveAt(index); this.Data.Insert(index, (TData)data.Clone()); }
public void AddData(int index, JData data, AddNewDataCallback callback) { TData cloneData = (TData)data.Clone(); this.Data.Insert(index, cloneData); if (callback != null) { callback(cloneData); } }