void RaiseParentPackageInstalledEventIfHasSubscribers(object sender, ParentPackageOperationEventArgs e) { if (ParentPackageInstalled != null) { guiSyncDispatcher(() => RaiseParentPackageInstalledEvent(sender, e)); } }
PackageManagementPackageReferenceEventArgs CreateEventArgs(ParentPackageOperationEventArgs e) { return(new PackageManagementPackageReferenceEventArgs( e.Project.DotNetProject, e.Package.Id, e.Package.Version.ToString())); }
void PackageInstalled(object sender, ParentPackageOperationEventArgs e) { if (ShouldRefreshTypeSystemForProject(e)) { projectsRequiringTypeSystemRefresh.Add(e.Project); } }
void RefreshUpdatedPackages(ParentPackageOperationEventArgs e) { GuiDispatch(() => { UpdatedPackagesInProject updatedPackages = GetUpdatedPackages(e.Project.Project); updatedPackages.RemovePackage(e.Package); }); }
void OnPackageReferenceAdded(ParentPackageOperationEventArgs e) { var handler = PackageReferenceAdded; if (handler != null) { handler(this, CreateEventArgs(e)); } }
void RemoveUpdatedPackages(ParentPackageOperationEventArgs e) { UpdatedPackagesInProject updatedPackages = GetUpdatedPackages(e.Project.Project); if (updatedPackages.AnyPackages()) { updatedPackages.RemovePackage(e.Package); updatedPackages.RemoveUpdatedPackages(e.Project.GetPackageReferences()); } }
void RefreshUpdatedPackages(ParentPackageOperationEventArgs e) { GuiDispatch(() => { if (taskRunner.IsRunning) { packageOperationsDuringCheckForUpdates.Add(e); } else { RemoveUpdatedPackages(e); } }); }
void RefreshUpdatedPackages(ParentPackageOperationEventArgs e, bool installed) { GuiDispatch(() => { if (taskRunner.IsRunning) { packageOperationsDuringCheckForUpdates.Add( new ParentPackageOperationDuringCheckForUpdates(e, installed)); } else { RemoveUpdatedPackages(e, installed); } }); }
void RaiseParentPackageUninstalledEvent(object sender, ParentPackageOperationEventArgs e) { ParentPackageUninstalled(sender, e); }
void RaiseParentPackageUninstalledEventIfHasSubscribers(object sender, ParentPackageOperationEventArgs e) { if (ParentPackageUninstalled != null) { guiSyncDispatcher (() => RaiseParentPackageUninstalledEvent(sender, e)); } }
void RaiseParentPackageUninstalledEvent(object sender, ParentPackageOperationEventArgs e) { ParentPackageUninstalled(sender, e); }
void OnPackageReferenceAdded (ParentPackageOperationEventArgs e) { var handler = PackageReferenceAdded; if (handler != null) { handler (this, CreateEventArgs (e)); } }
PackageManagementPackageReferenceEventArgs CreateEventArgs (ParentPackageOperationEventArgs e) { return new PackageManagementPackageReferenceEventArgs ( e.Project.DotNetProject, e.Package.Id, e.Package.Version.ToString ()); }
void PackageUninstalled (object sender, ParentPackageOperationEventArgs e) { OnPackageReferencedRemoved (e); }
void PackageInstalled (object sender, ParentPackageOperationEventArgs e) { OnPackageReferenceAdded (e); }
void PackageInstalled(object sender, ParentPackageOperationEventArgs e) { OnPackageReferenceAdded(e); }
bool ShouldRefreshTypeSystemForProject (ParentPackageOperationEventArgs e) { return e.Operations.Any (operation => IsInstallingMSBuildFiles (operation)); }
void PackageUninstalled(object sender, ParentPackageOperationEventArgs e) { OnPackageReferencedRemoved(e); }
void PackageInstalled (object sender, ParentPackageOperationEventArgs e) { if (ShouldRefreshTypeSystemForProject (e)) { projectsRequiringTypeSystemRefresh.Add (e.Project); } }
void PackageUninstalled(object sender, ParentPackageOperationEventArgs e) { RefreshUpdatedPackages(e, false); }
public ParentPackageOperationDuringCheckForUpdates(ParentPackageOperationEventArgs eventArgs, bool isInstall) { EventArgs = eventArgs; IsInstall = isInstall; }
bool ShouldRefreshTypeSystemForProject(ParentPackageOperationEventArgs e) { return(e.Operations.Any(operation => IsInstallingMSBuildFiles(operation))); }