Esempio n. 1
0
 public static int FindContentItem(IBrowsePivot pivot, string strSearch)
 {
     if (pivot == null)
     {
         throw new ArgumentNullException("pivot");
     }
     return(FindContentItem(pivot.Content, strSearch));
 }
Esempio n. 2
0
 public static int FindContentItem(IBrowsePivot pivot, string strSearch)
 {
     if (pivot == null)
     {
         throw new ArgumentNullException("pivot");
     }
     return FindContentItem(pivot.Content, strSearch);
 }
Esempio n. 3
0
        public virtual int FindContentItem(string strSearch)
        {
            if (string.IsNullOrEmpty(strSearch))
            {
                return(-1);
            }
            IBrowsePivot pivot = this as IBrowsePivot;

            if (pivot == null)
            {
                throw new InvalidOperationException("BaseBrowsePivot.FindContentItem requires the derived class be an IBrowsePivot.");
            }
            if (this.m_findDelegate != null)
            {
                return(this.m_findDelegate(pivot, strSearch));
            }
            return(FindContentItem(pivot, strSearch));
        }