public void EditDependencies(IDependenciesViewModelContainer dependenciesViewModelContainer, DependenciesConfiguration dependenciesConfiguration) { var viewModel = _depVmFunc(); viewModel.Init(dependenciesViewModelContainer, dependenciesConfiguration); _applicationGlobalCommands.ShowWindowModal(() => new DependenciesView(), viewModel); }
public void Init(IDependenciesViewModelContainer dependenciesViewModelContainer, DependenciesConfiguration dependenciesConfiguration) { _dependenciesViewModelContainer = dependenciesViewModelContainer; DependencyViewModels.Clear(); DependencyViewModels.AddCollection(_dependenciesViewModelContainer.DependencyViewModels .CloneCollection()); DependencyCreators = dependenciesConfiguration.Creators .Select(tuple => new DependencyCreator(this, tuple.dependencyName, tuple.creator)).ToList(); }