public SetDependenciesDialog(ModConfigService modConfigService, PathTuple <ModConfig> config) { InitializeComponent(); ViewModel = new SetDependenciesDialogViewmodel(modConfigService, config); var manipulator = new DictionaryResourceManipulator(this.Contents.Resources); _dependenciesViewSource = manipulator.Get <CollectionViewSource>("SortedDependencies"); _dependenciesViewSource.Filter += DependenciesViewSourceOnFilter; this.Closed += OnClosed; }
public SetDependenciesDialog(ManageModsViewModel manageModsViewModel) { InitializeComponent(); ViewModel = new SetDependenciesDialogViewmodel(manageModsViewModel, new ResourceManipulator(this.Contents)); this.Closed += OnClosed; }