Example #1
0
        private String checkValidity()
        {
            try
            {
                LicenseService license     = new LicenseService();
                String         currentKey  = license.getCurrentKey();
                String         getDecrypt  = license.Decrypt(currentKey);
                string         getLastDate = getDecrypt.Substring(1, 1) + getDecrypt.Substring(16, 1);
                string         Sdate       = "20" + getDecrypt.Substring(8, 1) + getDecrypt.Substring(3, 1) + "-" + getDecrypt.Substring(5, 1) + getDecrypt.Substring(12, 1) + "-" + "01";
                string         Edate       = "20" + getDecrypt.Substring(13, 1) + getDecrypt.Substring(18, 1) + "-" + getDecrypt.Substring(10, 1) + getDecrypt.Substring(6, 1) + "-" + getLastDate.ToString();

                System.Diagnostics.Debug.Write(Sdate + "::" + Edate);
                return(Sdate + "::" + Edate);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }