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); }
private void DeselectVersions(IList <IPackageVersion> versions) { m_PageManager.RemoveSelection(versions.Select(v => new PackageAndVersionIdPair(v.packageUniqueId, v.uniqueId))); }
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)); }