コード例 #1
0
 private void DynamoViewModelRequestPackagePaths(object sender, EventArgs e)
 {
     var viewModel = new PackagePathViewModel(dynamoViewModel.PreferenceSettings);
     var view = new PackagePathView(viewModel) { Owner = this };
     view.ShowDialog();
 }
コード例 #2
0
ファイル: DynamoView.xaml.cs プロジェクト: DynamoDS/Dynamo
 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();
 }