private void DynamoViewModelRequestPackagePaths(object sender, EventArgs e) { var viewModel = new PackagePathViewModel(dynamoViewModel.PreferenceSettings); var view = new PackagePathView(viewModel) { Owner = this }; view.ShowDialog(); }
private void DynamoViewModelRequestPackagePaths(object sender, EventArgs e) { var loadPackagesParams = new LoadPackageParams { Preferences = dynamoViewModel.PreferenceSettings, PathManager = dynamoViewModel.Model.PathManager, }; var customNodeManager = dynamoViewModel.Model.CustomNodeManager; var packageLoader = dynamoViewModel.Model.GetPackageManagerExtension().PackageLoader; var viewModel = new PackagePathViewModel(packageLoader,loadPackagesParams,customNodeManager); var view = new PackagePathView(viewModel) { Owner = this }; view.ShowDialog(); }