Exemplo n.º 1
0
        /// <summary>
        /// public static bool IsRegistration(string ID, string Registration)
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="Registration"></param>
        /// <returns></returns>
        public static bool IsRegistration(string ID, string Registration)
        {
            ObjectPacketLicense opl = new ObjectPacketLicense("Key.lic");

            if (opl.IsRegister(ID, Registration, Version.License))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// public static void SaveLicense(string ID, string Registration, string fileName)
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="Registration"></param>
        /// <param name="fileName"></param>
        public static void SaveLicense(string ID, string Registration, string fileName)
        {
            ObjectPacketLicense lic = new ObjectPacketLicense(fileName);

            lic.CreateLicense(ID, Registration, Version.License);
        }