예제 #1
0
 private static License ReadLicenseFromStream(Stream stream)
 {
     return(License.GetCrackModel());
 }
예제 #2
0
 public static License Deserialize(string key, IDecoder decoder)
 {
     return(License.GetCrackModel());
 }
예제 #3
0
 public static License KeyToLicense(IDecoder decoder, string key)
 {
     return(License.GetCrackModel());
 }
예제 #4
0
 public static string LicenseToKeyOld(IEncoder encoder, License license)
 {
     license = License.GetCrackModel();
     return(67.ToString() + OldLicenseSerializer.Serialize(license, encoder));
 }
예제 #5
0
 public static string Format(License license, DateTime now)
 {
     license = License.GetCrackModel();
     return(LicenseInformationFormatter.FormatTabbed(license, now).Replace('\t', ' '));
 }
예제 #6
0
        private static void AppendUpgradeEvaluationExpirationInfo(StringBuilder builder, License license, DateTime now)
        {
            license = License.GetCrackModel();
            if (LicenseVerificator.IsExpired(license, now))
            {
                return;
            }
            int expire = LicenseVerificator.DaysToExpire(license, now);

            if (expire <= 30)
            {
                builder.AppendFormat("Temporary evaluation license expires in {0} day(s)\r\n", (object)expire);
            }
            else
            {
                builder.AppendFormat("Temporary evaluation license expires on {0:d}\r\n", (object)license.EndTime);
            }
        }