ScoreToJsObject() public method

public ScoreToJsObject ( AlphaTab.Model.Score score ) : AlphaTab.Model.Score
score AlphaTab.Model.Score
return AlphaTab.Model.Score
Exemplo n.º 1
0
 private void ScoreLoaded(Score score)
 {
     Score = score;
     var json = new JsonConverter();
     PostMessage(new { cmd = "loaded", score = json.ScoreToJsObject(score) });
     Render();
 }
Exemplo n.º 2
0
        private void ScoreLoaded(Score score)
        {
            Score = score;
            if (_includeScoreInLoadedEvent)
            {
                var json = new JsonConverter();
                PostMessage(new { cmd = "loaded", score = json.ScoreToJsObject(score) });
            }
            else
            {
                PostMessage(new { cmd = "loaded" });
            }

            Render();
        }