public void InvalidateRows() { lock (_dataLock) { Log.Update(); _matchedRowCache = null; _sortedRowCache = null; UpdateTableControls.Trigger(); UpdateTableBody.Trigger(); } }
public void InvalidateData() { lock (_dataLock) { Log.Update(); _data = new LinkedList <T>(_dataGetter.Invoke()); _matchedRowCache = null; _sortedRowCache = null; UpdateTableControls.Trigger(); UpdateTableBody.Trigger(); } }
public void AppendRow(T row, int?limit = null) { lock (_dataLock) { _data ??= new LinkedList <T>(_dataGetter.Invoke()); _data.AddLast(row); if (limit != null && _data.Count > limit) { for (var i = 0; i < _data.Count - limit; i++) { _data.RemoveFirst(); } } _matchedRowCache = null; _sortedRowCache = null; UpdateTableControls.Trigger(); UpdateTableBody.Trigger(); } }
private void InvalidatePage() { Log.Update(); UpdateTableBody.Trigger(); }
private void InvalidateSort() { Log.Update(); UpdateTableControls.Trigger(); UpdateTableBody.Trigger(); }