public static void CheckDBVersion()
        {
            // Version de la bd de moleQule

            ApplicationSettingInfo dbVersion = ApplicationSettingInfo.Get(Settings.Default.SETTING_NAME_MOLEQULE_DB_VERSION);

            //Version de base de datos equivalente o no existe la variable
            if ((dbVersion.Value == string.Empty) ||
                (String.CompareOrdinal(dbVersion.Value, SettingsMng.Instance.GetMoleQuleDBVersion()) == 0))
            {
                return;
            }
            //Version de base de datos superior
            else if (String.CompareOrdinal(dbVersion.Value, SettingsMng.Instance.GetMoleQuleDBVersion()) > 0)
            {
                throw new iQException(String.Format(Resources.Messages.DB_VERSION_HIGHER,
                                                    dbVersion.Value,
                                                    SettingsMng.Instance.GetMoleQuleDBVersion(),
                                                    Settings.Default.NAME),
                                      iQExceptionCode.DB_VERSION_MISSMATCH);
            }
            //Version de base de datos inferior
            else if (String.CompareOrdinal(dbVersion.Value, SettingsMng.Instance.GetMoleQuleDBVersion()) < 0)
            {
                throw new iQException(String.Format(Resources.Messages.DB_VERSION_LOWER,
                                                    dbVersion.Value,
                                                    SettingsMng.Instance.GetMoleQuleDBVersion(),
                                                    Settings.Default.NAME),
                                      iQExceptionCode.DB_VERSION_MISSMATCH);
            }

            // Version de la bd de la Aplicacion

            dbVersion = ApplicationSettingInfo.Get(Settings.Default.DB_VERSION_VARIABLE);

            //Version de base de datos equivalente o no existe la variable
            if ((dbVersion.Value == string.Empty) ||
                (String.CompareOrdinal(dbVersion.Value, SettingsMng.Instance.GetDBVersion()) == 0))
            {
                return;
            }
            //Version de base de datos superior
            else if (String.CompareOrdinal(dbVersion.Value, SettingsMng.Instance.GetDBVersion()) > 0)
            {
                throw new iQException(String.Format(Resources.Messages.DB_VERSION_HIGHER,
                                                    dbVersion.Value,
                                                    SettingsMng.Instance.GetDBVersion(),
                                                    SettingsMng.Instance.GetApplicationTitle()),
                                      iQExceptionCode.DB_VERSION_MISSMATCH);
            }
            //Version de base de datos inferior
            else if (String.CompareOrdinal(dbVersion.Value, SettingsMng.Instance.GetDBVersion()) < 0)
            {
                throw new iQException(String.Format(Resources.Messages.DB_VERSION_LOWER,
                                                    dbVersion.Value,
                                                    SettingsMng.Instance.GetDBVersion(),
                                                    SettingsMng.Instance.GetApplicationTitle()),
                                      iQExceptionCode.DB_VERSION_MISSMATCH);
            }
        }
        internal void CopyValues(ApplicationSettingInfo source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source._base.Record);
        }