public void acquirer_Completed(object sender, AcquireLicenseCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         // take appropriate action.  Might be retrying for instance.
     }
     else if (e.Cancelled)
     {
         // take appropriate action.  Might be nothing.
     }
     else
     {
     }
 }
Exemplo n.º 2
0
 void licenseAcquirer_AcquireLicenseCompleted(object sender, AcquireLicenseCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         Debug.WriteLine("License Acquisition Error: {0}", e.Error);
         TextRun_LicenseAcquisition_Result.Text = "Failed";
     }
     else
     {
         Debug.WriteLine("License Acquisition Success");
         TextRun_LicenseAcquisition_Result.Foreground = new SolidColorBrush(Colors.White);
         TextRun_LicenseAcquisition_Result.Text = "Success";
         App.Current.RootLicenseAcquired = true;
         Button_PlayReady_ToTheLimit.IsEnabled = true;
     }
 }