コード例 #1
0
ファイル: GameScreen.cs プロジェクト: DimaFormaniuk/Helix
    private void OnCalculateCompleted()
    {
        string s = "";

        s += _towerBuilder.Ball.GetCompleted(_countPlatform + 1);
        s += "% COMPLETED";
        CompletedText?.Invoke(s);
    }
コード例 #2
0
ファイル: BootstrapButton.cs プロジェクト: waldo2590/Rock
        /// <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);
            }
        }