public void ResetItems(int count, bool freezeEndEdge = false) { _DataList.InitWithNewCount(count); if (SkipNotifyingAdapterForNextEvent) { SkipNotifyingAdapterForNextEvent = false; } else { _Adapter.ResetItems(_DataList.Count, freezeEndEdge, _KeepVelocityOnCountChange); } }
public void InsertItems(int index, IList <T> models, bool freezeEndEdge = false) { _DataList.InsertRange(index, models); if (_Adapter.InsertAtIndexSupported) { _Adapter.InsertItems(index, models.Count, freezeEndEdge, _KeepVelocityOnCountChange); } else { _Adapter.ResetItems(_DataList.Count, freezeEndEdge, _KeepVelocityOnCountChange); } }