public SelectProjectsDialog (SelectProjectsViewModel viewModel) { this.Build (); this.viewModel = viewModel; InitializeTreeView (); AddProjectsToTreeView (); }
SelectProjectsDialog CreateSelectProjectsDialog(IEnumerable<IPackageManagementSelectedProject> projects) { var viewModel = new SelectProjectsViewModel(projects); return new SelectProjectsDialog(viewModel); }
void CreateViewModel(List <FakeSelectedProject> fakeSelectedProjects) { viewModel = new SelectProjectsViewModel(fakeSelectedProjects); }