Ejemplo n.º 1
0
 void service_GetChallengeIDCompleted(object sender, Danh_Trong.GameServices.GetChallengeIDCompletedEventArgs e)
 {
     int challengeID = e.Result;
     string hash = CalculateHash(_score, securityKey);
     service.UpdateScoreAsync(hash, challengeID, _score);
 }
Ejemplo n.º 2
0
        void service_UpdateScoreCompleted(object sender, Danh_Trong.GameServices.UpdateScoreCompletedEventArgs e)
        {
            int point = e.Result;
            if (point > -1)
                MessageBox.Show("Đã lưu điểm cao nhất của bạn! Bạn được thưởng " + point + " kẹo!");
            else
                MessageBox.Show("Có lỗi xảy ra!");

            _isSubmitting = false;
            HtmlPage.Document.GetElementById("silverlightLoading").SetStyleAttribute("display", "none");
            HtmlPage.Document.GetElementById("silverlightMask").SetStyleAttribute("display", "none");
            dlgPlayAgain();
        }