public string AcquireConfirmationId(string installationId, string extendedProductId)
        {
            string confirmationId = ActivationHelper.CallWebService(installationId, extendedProductId);

            return(confirmationId);
        }
Beispiel #2
0
 protected void Submit_Click(Object sender, EventArgs E)
 {
     try {
         if (RadioButtonList1.SelectedIndex == 0 && !((string.IsNullOrWhiteSpace(InstallationId.Text)) || (string.IsNullOrWhiteSpace(ExtendedProductId.Text))))
         {
             Result.Text = string.Format("The Confirmation ID is: <b>{0}</b>", ActivationHelper.CallWebService(1, InstallationId.Text, ExtendedProductId.Text));
         }
         else if (RadioButtonList1.SelectedIndex == 1 && !(string.IsNullOrWhiteSpace(ExtendedProductId.Text)))
         {
             Result.Text = string.Format("You have <b>{0}</b> activations left.", ActivationHelper.CallWebService(2, null, ExtendedProductId.Text));
         }
         else
         {
             Result.Text = "Please fill in all required fields and try again.";
         }
     } catch (Exception ex) {
         Result.Text = string.Format("The data could not be retrieved. {0}.", ex.Message);
     }
 }
Beispiel #3
0
        public string RetrieveActivationCount(string extendedProductId)
        {
            string remainingActivationCount = ActivationHelper.CallWebService(2, null, extendedProductId);

            return(remainingActivationCount);
        }
Beispiel #4
0
        public int RetrieveActivationCount(string extendedProductId)
        {
            int remainingActivationCount = Convert.ToInt32(ActivationHelper.CallWebService(2, null, extendedProductId));

            return(remainingActivationCount);
        }