Ejemplo n.º 1
0
        private static void ExecuteMethod(object parameter)
        {
            if (!(parameter is MainViewModel))
            {
                throw new ArgumentException("Parameter must be the correct view model type.", nameof(parameter));
            }

            var mainViewModel           = parameter as MainViewModel;
            var excludedFolderViewModel = new ExcludedFoldersViewModel(mainViewModel);
            var window = new ExcludedFoldersWindow(excludedFolderViewModel);

            window.Show();
        }
Ejemplo n.º 2
0
 public ExcludedFoldersWindow(ExcludedFoldersViewModel viewModel)
 {
     this.DataContext = viewModel;
     this.InitializeComponent();
 }