Esempio n. 1
0
        private void RefreshTree()
        {
            if (!_Interop.IsAlive)
            {
                RootLayers.Clear();
            }
            if (!_Interop.IsCacheInvalidated)
            {
                return;
            }

            _Interop.GetVisualTree().ToList()
            .MergeInto(RootLayers, (v1, v2) => v1.ID == v2.ID, vvm => vvm.VisualChildren);
        }