Пример #1
0
        private void GenerateLicense()
        {
            string sFunctionName = "GenerateLicense()";

            try
            {
                PTSS.LicenserY.License LicenseY = new PTSS.LicenserY.License();
                if (isCustomPrivateKey())
                {
                    setLicense(LicenseY.GenerateLicense(KeyString.Trim(), CustomPrivateKey.Trim()));
                    License = getLicense();
                }
                else
                {
                    setLicense(LicenseY.GenerateLicense(KeyString.Trim()));
                    License = getLicense();
                }
            }
            catch (Exception ex)
            {
                #region Text Logging
                oLog.Log(
                    sClassName,
                    sFunctionName,
                    ex.ToString());
                #endregion Text Logging
            }
        }
Пример #2
0
        private void GetHash()
        {
            string sFunctionName = "GetHash()";

            try
            {
                PTSS.LicenserY.License LicenseY = new PTSS.LicenserY.License();
                setLicenseHash(LicenseY.GetHash(License.Trim()));
            }
            catch (Exception ex)
            {
                #region Text Logging
                oLog.Log(
                    sClassName,
                    sFunctionName,
                    ex.ToString());
                #endregion Text Logging
            }
        }