Exemple #1
0
    private static bool ShowModLoadSelectDialog(LoadModSelectDialogViewModel viewmodel)
    {
        var loadModSelectDialog = new LoadModSelectDialog(viewmodel);

        loadModSelectDialog.Owner = Application.Current.MainWindow;

        return(ShowDialogAndGetResult(loadModSelectDialog));
    }
Exemple #2
0
    /// <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;
    }