Example #1
0
 protected void OnTopicMoved(GroupTopicMovedArgs e)
 {
     if (TopicMoved != null)
     {
         TopicMoved(this, e);
     }
 }
Example #2
0
        public bool UpdateTopic()
        {
            bool result = false;

            result = DBGroups.GroupTopicUpdate(
                this.topicID,
                this.groupID,
                this.subject,
                this.sortOrder,
                this.isLocked);

            if (this.groupID != this.origGroupID)
            {
                Group.DecrementTopicCount(this.origGroupID);
                Group.IncrementTopicCount(this.groupID);

                GroupTopicMovedArgs e = new GroupTopicMovedArgs();
                e.GroupId         = groupID;
                e.OriginalGroupId = origGroupID;
                OnTopicMoved(e);


                Group.RecalculatePostStats(this.origGroupID);
                Group.RecalculatePostStats(this.groupID);
            }

            return(result);
        }