// ********************************************************************* // ApprovePostAndEdit_Click // /// <summary> /// Event handler to edit a post /// </summary> // ***********************************************************************/ public void ApprovePostAndEdit_Click(Object sender, CommandEventArgs e) { // Approve the post Moderate.ApprovePost(PostID, ForumUser.Username); // Now go the edit view HttpContext.Current.Response.Redirect(Globals.UrlEditPost + PostID); HttpContext.Current.Response.End(); }
// ********************************************************************* // ApprovePostAndMove_Changed // /// <summary> /// Event handler to approve and move a post /// </summary> // ***********************************************************************/ public void ApprovePostAndMove_Changed(Object sender, EventArgs e) { MovedPostStatus status; // Move the post status = Moderate.MovePost(PostID, Convert.ToInt32(approvePostAndMove.SelectedItem.Value.Replace("f-", "")), ForumUser.Username, true); // Approve the post if (status != MovedPostStatus.NotMoved) { Moderate.ApprovePost(PostID, ForumUser.Username); } }
// ********************************************************************* // ApprovePostAndTurnOffModeration_Click // /// <summary> /// Event handler to approve a post and turn off moderation /// </summary> // ***********************************************************************/ public void ApprovePostAndTurnOffModeration_Click(Object sender, CommandEventArgs e) { // Approve the post and turn off moderation for this user Moderate.ApprovePost(PostID, ForumUser.Username, UsernamePostedBy); }
// ********************************************************************* // ApprovePost_Click // /// <summary> /// Event handler to approve posts /// </summary> // ***********************************************************************/ public void ApprovePost_Click(Object sender, CommandEventArgs e) { // Approve the post Moderate.ApprovePost(PostID, ForumUser.Username); }