/// <summary> /// The sync users_ click. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void SyncUsersClick([NotNull] object sender, [NotNull] EventArgs e) { // start... SyncMembershipUsersTask.Start(this.PageContext.PageBoardID); // enable timer... this.UpdateStatusTimer.Enabled = true; }
/// <summary> /// The sync users_ click. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> protected void SyncUsers_Click([NotNull] object sender, [NotNull] EventArgs e) { // start... SyncMembershipUsersTask.Start(this.PageContext.PageBoardID); // enable timer... this.UpdateStatusTimer.Enabled = true; // show blocking ui... this.PageContext.PageElements.RegisterJsBlockStartup( "BlockUIExecuteJs", JavaScriptBlocks.BlockUIExecuteJs("SyncUsersMessage")); }