/// <summary> /// Handles the Click event of the commit control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> protected void CommitClick([NotNull] object sender, [NotNull] EventArgs e) { PruneTopicTask.Start( this.PageContext.PageBoardID, this.forumlist.SelectedValue.ToType <int>(), this.days.Text.ToType <int>(), this.permDeleteChkBox.Checked); this.PageContext.AddLoadMessage(this.GetText("ADMIN_PRUNE", "MSG_TASK"), MessageTypes.info); }
/// <summary> /// The commit_ click. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> private void commit_Click(object sender, EventArgs e) { PruneTopicTask.Start( PageContext.PageBoardID, Convert.ToInt32(this.forumlist.SelectedValue), Convert.ToInt32(this.days.Text), this.permDeleteChkBox.Checked); PageContext.AddLoadMessage("Prune Task Scheduled"); }