Exemplo n.º 1
0
 private void OnMissPackagesChanged(object sender, PackagesMissingStatusEventArgs e)
 {
     // after packages are restored, refresh the installed tab to show those packages.
     if (!e.PackagesMissing)
     {
         if (SelectedNode != null)
         {
             SelectedNode.Refresh(resetQueryBeforeRefresh: true);
         }
     }
 }
Exemplo n.º 2
0
 protected override void OnExecuteCompleted(PackageItem item)
 {
     if (SelectedNode != null)
     {
         // after every uninstall operation, just refresh the current node because
         // when packages are uninstalled, the number of pages may decrease.
         SelectedNode.Refresh(resetQueryBeforeRefresh: true);
     }
     else
     {
         base.OnExecuteCompleted(item);
     }
 }
        protected override void OnExecuteCompleted(PackageItem item)
        {
            _lastExecutionItem = item;
            SelectedNode.PackageLoadCompleted += SelectedNode_PackageLoadCompleted;

            // For the solution Installed provider, packages can be installed and uninstalled.
            // It's cumbersome to update the packages incrementally, so we just refresh everything.
            SelectedNode.Refresh(resetQueryBeforeRefresh: true);

            // repopulate the list of project references for all package items
            foreach (PackageItem packageItem in SelectedNode.Extensions)
            {
                packageItem.ReferenceProjects.Clear();
                packageItem.ReferenceProjects.AddRange(GetReferenceProjects(packageItem.PackageIdentity));
            }
        }