Пример #1
0
        public ActivationModel ValidateProduct()
        {
            //var dt = DbCommandUtil.GetCurrentSqlDate(true);
            //var loc = dt.ToLocalTime();

            return(Singleton.Edition == PinnaFaceEdition.CompactEdition
                ? DbCommandUtil.ValidateProductSqlCe()
                : DbCommandUtil.ValidateProductSql());
        }
Пример #2
0
        public bool ValidateProduct()
        {
            //var dt = DbCommandUtil.GetCurrentSqlDate(true);
            //var loc = dt.ToLocalTime();

            var activationModel = Singleton.Edition == PinnaFaceEdition.CompactEdition
                ? DbCommandUtil.ValidateProductSqlCe()
                : DbCommandUtil.ValidateProductSql();

            if (activationModel != null &&
                activationModel.DatabaseVersionDate != 0 &&
                activationModel.MaximumSystemVersion != 0)
            {
                if (Singleton.SystemVersionDate < activationModel.DatabaseVersionDate)
                {
                    return(false);
                }
            }

            return(true);
        }