public void Clear() { Dispatcher.BeginInvoke(new Action(() => { Data.Clear(); FilteredData.Clear(); PageData.Clear(); })); }
private void UpdateFilteredData() { Dispatcher.Invoke(() => { FilteredData.Clear(); FilteredData.AddRange(Data.Where(proxy => !IsProxyFiltered(proxy))); using (PreventChangeSortingDirection preventor = new PreventChangeSortingDirection(DataGridControl)) { if (preventor.HasSorting) { SortFilteredData(preventor.SortMemberPath, preventor.SortDirection); } } UpdateStatusString(); }); }