private void UpdateLocalState(IProcessStateList <TEntity> state) { if (state == null) { return; } //CurrentEntity.Value = state.Entity; Application.Current.Dispatcher.BeginInvoke(new Action(() => { EntitySet.Value = new ObservableList <TEntity>(state.EntitySet.ToList()); EntitySet.Value.Reset(); if (!SelectedEntities.Value.SequenceEqual(state.SelectedEntities.ToList())) { SelectedEntities.Value = new ObservableList <TEntity>(state.SelectedEntities.ToList()); } })); }
public UpdateProcessStateList(IProcessStateList <TEntity> state, IStateCommandInfo processInfo, ISystemProcess process, ISystemSource source) : base(processInfo, process, source) { State = state; }