Beispiel #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Redoes the Insert Book - the book is being added
        /// </summary>
        /// <param name="fRefreshPending">Ignored</param>
        /// ------------------------------------------------------------------------------------
        public override bool Redo(bool fRefreshPending)
        {
            // find out the HVO of the book that is being restored.
            // We can't use m_bookHvo because if multiple users are connected with
            // this database the HVO might already be gone.
            IScrBook book = ScrBook.FindBookByID(m_cache, m_bookID);

            m_bookHvo = book.Hvo;
            if (FwApp.App != null)
            {
                FwApp.App.Synchronize(new SyncInfo(SyncMsg.ksyncScriptureNewBook, m_bookHvo,
                                                   (int)Scripture.ScriptureTags.kflidScriptureBooks), m_cache);
            }
            m_bookFilter.UpdateFilter(m_bookHvo);
            m_bookFilter.Load(m_bookHvo, m_bookFilter.Tag, m_cache.DefaultVernWs,
                              m_cache.VwCacheDaAccessor);
            return(true);
        }