private void FillRootAssetCollection() { RootAssets.Clear(); RootAssets.AddRange(Package.RootAssets.Select(x => Session.GetAssetById(x.Id))); foreach (var dependency in PackageContainer.FlattenedDependencies) { if (dependency.Package != null) { RootAssets.AddRange(dependency.Package.RootAssets.Select(x => Session.GetAssetById(x.Id))); } } RegisterMemberCollectionForActionStack(nameof(RootAssets), RootAssets); RootAssets.CollectionChanged += RootAssetsCollectionChanged; }
private void FillRootAssetCollection() { RootAssets.Clear(); RootAssets.AddRange(Package.RootAssets.Select(x => Session.GetAssetById(x.Id))); foreach (var dependency in Package.LocalDependencies) { RootAssets.AddRange(dependency.RootAssets.Select(x => Session.GetAssetById(x.Id))); } foreach (var dependency in Package.Meta.Dependencies) { RootAssets.AddRange(dependency.RootAssets.Select(x => Session.GetAssetById(x.Id))); } RegisterMemberCollectionForActionStack(nameof(RootAssets), RootAssets); RootAssets.CollectionChanged += RootAssetsCollectionChanged; }