Esempio n. 1
0
        public virtual bool SetNewSelection(IEnumerable <PackageAndVersionIdPair> packageAndVersionIds)
        {
            var numOldSelections = m_Selection.Count;

            if (!m_Selection.SetNewSelection(packageAndVersionIds))
            {
                return(false);
            }

            TriggerOnSelectionChanged();
            return(true);
        }
Esempio n. 2
0
        public virtual bool SetNewSelection(IEnumerable <PackageAndVersionIdPair> packageAndVersionIds)
        {
            var numOldSelections = m_Selection.Count;

            if (!m_Selection.SetNewSelection(packageAndVersionIds))
            {
                return(false);
            }

            TriggerOnSelectionChanged();
            UpdateVisualStatesExpandableAndTriggerChangeEvent(numOldSelections, m_Selection.Count);
            return(true);
        }