예제 #1
0
        void ManagePackagesButtonClicked(object sender, EventArgs e)
        {
            var packageEvents = new ThreadSafePackageManagementEvents(PackageManagementServices.PackageManagementEvents);

            using (var userPrompts = new ManagePackagesUserPrompts(packageEvents)) {
                PackageViewModel2 packageViewModel = GetSelectedPackageViewModel();
                packageViewModel.ManagePackage();
            }
        }
예제 #2
0
        void CreateManagePackagesViewModel()
        {
            CreateRegisteredPackageRepositories();
            CreateSolution();
            ThreadSafePackageManagementEvents packageManagementEvents = CreateThreadSafePackageManagementEvents();
            PackagesViewModels packagesViewModels = CreatePackagesViewModels(packageManagementEvents);

            managePackagesViewModel =
                new ManagePackagesViewModel(
                    packagesViewModels,
                    new ManagePackagesViewTitle(solution),
                    packageManagementEvents);
        }
예제 #3
0
        ManagePackagesViewModel2 CreateViewModel()
        {
            var packageEvents = new ThreadSafePackageManagementEvents(PackageManagementServices.PackageManagementEvents);
            var viewModels    = new PackagesViewModels2(
                PackageManagementServices.Solution,
                PackageManagementServices.RegisteredPackageRepositories,
                packageEvents,
                PackageManagementServices.PackageActionRunner,
                new PackageManagementTaskFactory());

            return(new ManagePackagesViewModel2(
                       viewModels,
                       new ManagePackagesViewTitle(PackageManagementServices.Solution),
                       packageEvents));
        }
		void CreateEvents ()
		{
			isGuiSyncDispatchCalled = false;
			unsafeEvents = new PackageManagementEvents ();
			threadSafeEvents = new ThreadSafePackageManagementEvents (unsafeEvents, RunGuiSyncDispatch);
		}