static public int MoveDownSelectedBookmark(Form1 Parent)
        {
            if (Parent.m_CurDoc == null)
            {
                return(0);
            }
            if (Parent.SelectedBookmarkNode == null)
            {
                MessageBox.Show("There are no selected bookmarks - please select a bookmark from the Bookmarks Tree", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return(0);
            }
            IPXC_Bookmark pxcBookmark = Parent.SelectedBookmarkNode.m_Bookmark;

            if (pxcBookmark == Parent.m_CurDoc.BookmarkRoot.LastChild)
            {
                return(0);
            }

            if (pxcBookmark == pxcBookmark.Parent.LastChild)
            {
                IPXC_Bookmark parent = pxcBookmark.Parent;
                pxcBookmark.Unlink();
                parent.AddSibling(pxcBookmark, false);
            }
            else
            {
                IPXC_Bookmark nextBookmark = pxcBookmark.Next;
                pxcBookmark.Unlink();
                nextBookmark.AddSibling(pxcBookmark, false);
            }
            return((int)Form1.eFormUpdateFlags.efuf_Bookmarks);
        }
        static public int RemoveSelectedBookmarkWithoutChildren(Form1 Parent)
        {
            if (Parent.m_CurDoc == null)
            {
                return(0);
            }

            if (Parent.SelectedBookmarkNode == null)
            {
                MessageBox.Show("There are no selected bookmarks - please select a bookmark from the Bookmarks Tree", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return(0);
            }
            IPXC_Bookmark selBookmark = Parent.SelectedBookmarkNode.m_Bookmark;

            while (selBookmark.ChildrenCount > 0)
            {
                IPXC_Bookmark childBookmark = selBookmark.FirstChild;
                selBookmark.FirstChild.Unlink();
                selBookmark.AddSibling(childBookmark, false);
            }
            selBookmark.Unlink();
            return((int)Form1.eFormUpdateFlags.efuf_Bookmarks);
        }