Exemplo n.º 1
0
        //create a child mime part
        public MimeBody CreatePart(MimeBody parent)
        {
            if(ChildList == null) ChildList = new ArrayList();

            MimeBody aMimeBody = new MimeBody();
            if(parent != null)
            {
                int index = ChildList.IndexOf(parent);
                if(index != -1)
                {
                    ChildList.Insert(index+1, aMimeBody);
                    return aMimeBody;
                }
            }

            ChildList.Add(aMimeBody);
            return aMimeBody;
        }
Exemplo n.º 2
0
 public void ErasePart(MimeBody ChildPart)
 {
     ChildList.Remove(ChildPart);
 }