Пример #1
0
        public static KeyValidate getKeyValidator(string pi_appname, string pi_propertyname, string pi_contractnum, string pi_userinstallkey)
        {
            KeyValidate ae = new KeyValidate(pi_appname);

            if (!ae.validateInstallKey(pi_propertyname, pi_contractnum, pi_userinstallkey))
            {
                return(null);
            }
            else
            {
                ae.m_PropertyName   = pi_propertyname;
                ae.m_ContractNumber = pi_contractnum;
                ae.m_PublicKey      = pi_userinstallkey;
            }

            return(ae);
        }
Пример #2
0
        public static bool isModuleKeyValid(string pi_appname, string pi_propertyname, string pi_contractnum, string pi_modulename, string pi_userinstallkey)
        {
            KeyValidate ae = getKeyValidator(pi_appname, pi_propertyname, pi_contractnum, pi_userinstallkey);

            return(ae.validateModuleKey(pi_modulename, pi_userinstallkey));
        }
Пример #3
0
        public static bool isInstallKeyValid(string pi_appname, string pi_propertyname, string pi_contractnum, string pi_userinstallkey)
        {
            KeyValidate ae = new KeyValidate(pi_appname);

            return(ae.validateInstallKey(pi_propertyname, pi_contractnum, pi_userinstallkey));
        }