Exemplo n.º 1
0
    private void OnCalculateCompleted()
    {
        string s = "";

        s += _towerBuilder.Ball.GetCompleted(_countPlatform + 1);
        s += "% COMPLETED";
        CompletedText?.Invoke(s);
    }
Exemplo n.º 2
0
        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.WebControls.LinkButton.Command" /> event of the <see cref="T:System.Web.UI.WebControls.LinkButton" /> control.
        /// </summary>
        /// <param name="e">A <see cref="T:System.Web.UI.WebControls.CommandEventArgs" /> that contains the event data.</param>
        protected override void OnCommand(CommandEventArgs e)
        {
            base.OnCommand(e);

            if (CompletedText.IsNotNullOrWhiteSpace() || CompletedMessage.IsNotNullOrWhiteSpace())
            {
                _isButtonClicked = true;
                var script = string.Format(
                    @"
            Rock.controls.bootstrapButton.onCompleted({0})", this.ClientID);
                ScriptManager.RegisterStartupScript(this, this.GetType(), "BootstrapButton_" + this.ClientID, script, true);
            }
        }