private static bool ShowModLoadSelectDialog(LoadModSelectDialogViewModel viewmodel) { var loadModSelectDialog = new LoadModSelectDialog(viewmodel); loadModSelectDialog.Owner = Application.Current.MainWindow; return(ShowDialogAndGetResult(loadModSelectDialog)); }
/// <inheritdoc /> public LoadModSelectDialog(LoadModSelectDialogViewModel viewModel) { InitializeComponent(); ViewModel = viewModel; // Setup filters var manipulator = new DictionaryResourceManipulator(this.Contents.Resources); _modsViewSource = manipulator.Get <CollectionViewSource>("FilteredMods"); _modsViewSource.Filter += ModsViewSourceOnFilter; }