Пример #1
0
        public static bool VerificarVersion()
        {
            Version dbVersion  = null;
            Version appVersion = null;

            try
            {
                dbVersion  = VersionBRL.GetDataBaseVersion();
                appVersion = VersionUtilities.GetAppVersion();
            }
            catch (Exception e)
            {
            }
            if (dbVersion == null || appVersion == null)
            {
                throw new Exception("El Sistema No esta Correctamente Configurado");
            }
            return(dbVersion.versionMayor == appVersion.versionMayor &&
                   dbVersion.versionMenor == appVersion.versionMenor);
        }
Пример #2
0
        public static bool AppIsValidVersion()
        {
            Version dbVersion  = null;
            Version appVersion = null;

            try
            {
                dbVersion  = VersionBRL.GetDataBaseVersion();
                appVersion = VersionUtilities.GetAppVersion();
            }
            catch (Exception ex)
            {
            }

            if (dbVersion == null || appVersion == null)
            {
                throw new Exception("El sistema no está correctamente configurado");
            }

            return(dbVersion.VersionMayor == appVersion.VersionMayor &&
                   dbVersion.VersionMenor == appVersion.VersionMenor);
        }