Пример #1
0
        public override Control PopulateCtrlTabTargetCandidateList(List <Control> targetCandidates)
        {
            if (targetCandidates == null)
            {
                throw new ArgumentNullException("targetCandidates", "'targetCandidates' is null.");
            }

            if (m_browseViewer != null)
            {
                int     targetCount    = targetCandidates.Count;
                Control focusedControl = m_browseViewer.PopulateCtrlTabTargetCandidateList(targetCandidates);
                // if we added any targets, use those candidates, otherwise use the base candidates.
                if (targetCandidates.Count > targetCount)
                {
                    return(focusedControl);
                }
            }
            return(base.PopulateCtrlTabTargetCandidateList(targetCandidates));
        }