public FixAssetReferencesViewModel([NotNull] IViewModelServiceProvider serviceProvider, [ItemNotNull, NotNull] IEnumerable <AssetViewModel> deletedObjects, [NotNull] IAssetDependencyManager dependencyManager, [NotNull] IFixReferencesDialog dialog)
     : base(serviceProvider, dialog)
 {
     if (dependencyManager == null)
     {
         throw new ArgumentNullException(nameof(dependencyManager));
     }
     this.dependencyManager = dependencyManager;
     hashIds = new HashSet <AssetId>();
     hashIds.AddRange(deletedObjects.Select(x => x.Id));
 }
Beispiel #2
0
        public IFixReferencesDialog CreateFixAssetReferencesDialog(IViewModelServiceProvider serviceProvider, IReadOnlyCollection <AssetViewModel> assets, IAssetDependencyManager dependencyManager)
        {
            var fixReferencesWindow = new FixAssetReferencesWindow(serviceProvider);
            var viewModel           = new FixAssetReferencesViewModel(serviceProvider, assets, dependencyManager, fixReferencesWindow);

            viewModel.Initialize(assets);
            fixReferencesWindow.DataContext = viewModel;
            return(fixReferencesWindow);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TextureAssetHighlighter"/> class.
 /// </summary>
 /// <param name="dependencyManager">The dependency manager of the current session.</param>
 public TextureAssetHighlighter([NotNull] IAssetDependencyManager dependencyManager)
     : base(dependencyManager)
 {
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MaterialAssetHighlighter"/> class.
 /// </summary>
 /// <param name="dependencyManager">The dependency manager of the current session.</param>
 public MaterialAssetHighlighter([NotNull] IAssetDependencyManager dependencyManager)
     : base(dependencyManager)
 {
 }