Ejemplo n.º 1
0
        public virtual bool removePost(Post p)
        {
            bool b = false;

            if (MyThreads.Contains(p))
            {
                b = MyThreads.Remove(p);
            }
            else
            {
                Post par = null;
                foreach (Post thread in MyThreads)
                {
                    par = IsParentOf(p, thread);
                    if (par != null)
                    {
                        b = par.comments.Remove(p);
                        break;
                    }
                }
            }
            return(b && p.kill());
        }
Ejemplo n.º 2
0
 public virtual bool removeThread(Post p)
 {
     return(MyThreads.Remove(p));
 }