Пример #1
0
        private void method_38(ParagraphBase A_0, ParagraphBase A_1)
        {
            Paragraph ownerParagraph = A_0.OwnerParagraph;

            if (ownerParagraph.method_5() > 0)
            {
                A_0.RemoveSelf();
            }
            else
            {
                Table ownerTable = null;
                if (ownerParagraph.Owner is TableCell)
                {
                    ownerTable = (ownerParagraph.Owner as TableCell).OwnerRow.OwnerTable;
                }
                if (ownerTable == null)
                {
                    if (ownerParagraph.Items.Count > 1)
                    {
                        A_0.RemoveSelf();
                    }
                    else
                    {
                        ownerParagraph.RemoveSelf();
                    }
                }
                else
                {
                    Paragraph paragraph2 = A_1.OwnerParagraph;
                    Table     table2     = null;
                    if (paragraph2.Owner is TableCell)
                    {
                        table2 = (paragraph2.Owner as TableCell).OwnerRow.OwnerTable;
                    }
                    if ((ownerTable != table2) && (ownerParagraph.Owner == ownerTable.FirstRow.Cells[0]))
                    {
                        ownerTable.RemoveSelf();
                    }
                    else
                    {
                        A_0.RemoveSelf();
                    }
                }
            }
        }
Пример #2
0
 internal void method_31(ParagraphBase A_0, ParagraphBase A_1)
 {
     if ((A_0.PreviousSibling != null) && (A_0.PreviousSibling is CommentMark))
     {
         A_0.OwnerParagraph.Items.Remove(A_0.PreviousSibling);
     }
     if ((A_1.NextSibling != null) && (A_1.NextSibling is CommentMark))
     {
         A_1.OwnerParagraph.Items.Remove(A_1.NextSibling);
     }
     if (A_0 != A_1)
     {
         if (A_0.OwnerParagraph != A_1.OwnerParagraph)
         {
             while ((A_0.OwnerParagraph.NextTextBodyItem != A_1.OwnerParagraph) && ((A_0.OwnerParagraph.NextTextBodyItem != null) && this.method_34(A_0.OwnerParagraph.NextTextBodyItem)))
             {
                 A_0.OwnerParagraph.NextTextBodyItem.RemoveSelf();
             }
         }
         while ((A_0.NextSibling != null) && ((A_0.NextSibling != A_1) && !(A_0.NextSibling is Comment)))
         {
             A_0.OwnerParagraph.Items.Remove(A_0.NextSibling);
         }
         while (A_1.PreviousSibling != null)
         {
             if ((A_1.PreviousSibling == A_0) || (A_0.NextSibling is Comment))
             {
                 break;
             }
             A_1.OwnerParagraph.Items.Remove(A_1.PreviousSibling);
         }
         this.method_37(A_0, A_1);
         this.method_38(A_0, A_1);
     }
     A_1.RemoveSelf();
 }