Beispiel #1
0
 public void InvalidateRows()
 {
     lock (_dataLock)
     {
         Log.Update();
         _matchedRowCache = null;
         _sortedRowCache  = null;
         UpdateTableControls.Trigger();
         UpdateTableBody.Trigger();
     }
 }
Beispiel #2
0
 public void InvalidateData()
 {
     lock (_dataLock)
     {
         Log.Update();
         _data            = new LinkedList <T>(_dataGetter.Invoke());
         _matchedRowCache = null;
         _sortedRowCache  = null;
         UpdateTableControls.Trigger();
         UpdateTableBody.Trigger();
     }
 }
Beispiel #3
0
        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();
            }
        }
Beispiel #4
0
 private void InvalidateSort()
 {
     Log.Update();
     UpdateTableControls.Trigger();
     UpdateTableBody.Trigger();
 }