Exemple #1
0
 private void OnPackageUninstalled(PackageEventArgs args)
 {
     if (this.PackageUninstalled != null)
     {
         this.PackageUninstalled(this, args);
     }
 }
		private void packageManager_PackageUninstalled(object sender, PackageEventArgs e)
		{
			// Will be called from a worker thread, because packages are installed in one.

			BaseItem item = this.GetItem(e.Id, e.Version);
			if (item == null) return;

			this.ReadItemData(item);
		}
		private void packageManager_PackageUninstalled(object sender, PackageEventArgs e)
		{
			// Will be called from a worker thread, because packages are installed in one.

			BaseItem item = this.GetItem(e.Id, e.Version);
			if (item == null) return;

			this.changeQueue.Enqueue(new ChangeEvent(item, ChangeOperation.Remove));
		}
		private void packageManager_PackageInstalled(object sender, PackageEventArgs e)
		{
			// Will be called from a worker thread, because packages are installed in one.

			LocalPackage localPackage = this.packageManager.LocalPackages.FirstOrDefault(p => p.Id == e.Id && p.Version == e.Version);
			if (localPackage == null) return;

			BaseItem item = this.CreatePackageItem(localPackage, null);
			if (item == null) return;

			this.changeQueue.Enqueue(new ChangeEvent(item, ChangeOperation.Add));
		}
Exemple #5
0
		private void OnPackageUninstalled(PackageEventArgs args)
		{
			if (this.PackageUninstalled != null)
				this.PackageUninstalled(this, args);
		}