internal NpmPackageInstallWindow(INpmController controller, NpmWorker npmWorker, DependencyType dependencyType = DependencyType.Standard) { this.DataContext = this.viewModel = new NpmPackageInstallViewModel(npmWorker, this.Dispatcher); this.viewModel.NpmController = controller; InitializeComponent(); this.DependencyComboBox.SelectedIndex = (int)dependencyType; }
public NpmPackageInstallViewModel( NpmWorker npmWorker, Dispatcher dispatcher ) { this.dispatcher = dispatcher; this.npmWorker = npmWorker; this.filterTimer = new Timer(this.FilterTimer_Elapsed, null, Timeout.Infinite, Timeout.Infinite); }