protected override bool TriggerAction(IList <IPackageVersion> versions)
 {
     m_PageManager.RemoveSelection(versions.Select(v => new PackageAndVersionIdPair(v.packageUniqueId, v.uniqueId)));
     if (!string.IsNullOrEmpty(m_AnalyticsEventName))
     {
         PackageManagerWindowAnalytics.SendEvent(m_AnalyticsEventName, packageIds: versions.Select(v => v.packageUniqueId));
     }
     return(true);
 }
Пример #2
0
 private void DeselectVersions(IList <IPackageVersion> versions)
 {
     m_PageManager.RemoveSelection(versions.Select(v => new PackageAndVersionIdPair(v.packageUniqueId, v.uniqueId)));
 }
Пример #3
0
 private void OnDeselectLockedSelectionsClicked()
 {
     m_PageManager.RemoveSelection(m_UnlockFoldout.versions.Select(s => new PackageAndVersionIdPair(s.packageUniqueId, s.uniqueId)));
     PackageManagerWindowAnalytics.SendEvent("deselectLocked", packageIds: m_UnlockFoldout.versions.Select(v => v.packageUniqueId));
 }