private void OnUnitsCollectionUpdated(object sender, UnitCollectionEventArgs <T> e)
        {
            Action action = () => Update(e.Units);

            if (_dispatcher.CheckAccess())
            {
                action();
            }
            else
            {
                _dispatcher.Invoke(action);
            }
        }
Beispiel #2
0
        public void OnUnitServerCollectionUpdated(object sender, UnitCollectionEventArgs <T> e)
        {
            Action action = () => UpdateUnits(e.Units);

            DispatcherHolder.BeginInvoke(action);
        }