Exemple #1
0
 public virtual Post GetThreadByBody(String body)
 {
     for (int i = 0; i < this.MyThreads.Count; i++)
     {
         Post p = IsCommentof(body, MyThreads.ElementAt(i));
         if (p != null)
         {
             return(p);
         }
     }
     return(null);
 }
Exemple #2
0
        public virtual bool IsContain(Post p)
        {
            bool found = false;

            for (int i = 0; i < MyThreads.Count(); i++)
            {
                if (MyThreads.ElementAt(i).isContain(p))
                {
                    found = true;
                }
            }
            return(found);
        }