Ejemplo n.º 1
0
 void obj_GetTopScoreCompleted(object sender, GetTopScoreCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         if (int.Parse(StaticData.Points) >= e.Result)
         {
             //Add to Score board
             MathPadServicesClient obj = new MathPadServicesClient();
             obj.AddScoreBoardAsync(StaticData.Name, int.Parse(StaticData.Points), int.Parse(StaticData.Time), StaticData.Category);
         }
     }
 }
Ejemplo n.º 2
0
 void obj_GetTopScoreCompleted(object sender, GetTopScoreCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         if (Convert.ToInt16(Score.Content.ToString()) >= e.Result)
         {
             mediaScore.Play();
             image1.Visibility = System.Windows.Visibility.Visible;
             //  label1.Content = "Top Score. You have entered the SCORE BOARD";
             txtHallOfFame.Text = "You have entered SCORE BOARD";
             mediaScore.Play();
             //Add to Score board
             //   MathPadServicesClient obj = new MathPadServicesClient();
             // obj.AddScoreBoardAsync(StaticData.Data, int.Parse(Score.Content.ToString()), int.Parse(Time.Content.ToString()), strCategory);
         }
     }
 }