public void ThreadMovedHandler(object sender, ForumThreadMovedArgs e) { if (WebConfigSettings.DisableSearchIndex) { return; } ForumThread forumThread = (ForumThread)sender; DataTable postIDList = forumThread.GetPostIdList(); Forum origForum = new Forum(e.OriginalForumId); foreach (DataRow row in postIDList.Rows) { int postID = Convert.ToInt32(row["PostID"]); ForumThread post = new ForumThread(forumThread.ThreadId, postID); RemoveForumIndexItem( origForum.ModuleId, e.OriginalForumId, forumThread.ThreadId, postID); IndexItem(post); } }