private void Update() { runtimeSet = selectables.GetMainList().Where(x => x is DefaultSelectable).Select(x => x as DefaultSelectable).ToList(); actualSelection = selection.GetActualSelection().Where(x => x is DefaultSelectable).Select(x => x as DefaultSelectable).ToList(); uiActualSelection = userInterface.GetActualSelection().Where(x => x is DefaultSelectable).Select(x => x as DefaultSelectable).ToList(); }
public void UpdateSelection() { _actualSelection = _actualSelection.Where(x => _mainList.GetMainList().Contains(x)).ToArray(); }