internal bool IsNewerVersion(UpdatableHelpInfo helpInfo, CultureInfo culture)
        {
            Version cultureVersion = helpInfo.GetCultureVersion(culture);
            Version version2       = this.GetCultureVersion(culture);

            return((version2 == null) || (cultureVersion > version2));
        }
Beispiel #2
0
        /// <summary>
        /// Checks if the other HelpInfo has a newer version
        /// </summary>
        /// <param name="helpInfo">HelpInfo object to check</param>
        /// <param name="culture">culture to check</param>
        /// <returns>true if the other HelpInfo is newer, false if not</returns>
        internal bool IsNewerVersion(UpdatableHelpInfo helpInfo, CultureInfo culture)
        {
            Debug.Assert(helpInfo != null);

            Version v1 = helpInfo.GetCultureVersion(culture);
            Version v2 = GetCultureVersion(culture);

            Debug.Assert(v1 != null);

            if (v2 == null)
            {
                return(true);
            }

            return(v1 > v2);;
        }
Beispiel #3
0
        /// <summary>
        /// Checks if the other HelpInfo has a newer version
        /// </summary>
        /// <param name="helpInfo">HelpInfo object to check</param>
        /// <param name="culture">culture to check</param>
        /// <returns>true if the other HelpInfo is newer, false if not</returns>
        internal bool IsNewerVersion(UpdatableHelpInfo helpInfo, CultureInfo culture)
        {
            Debug.Assert(helpInfo != null);

            Version v1 = helpInfo.GetCultureVersion(culture);
            Version v2 = GetCultureVersion(culture);

            Debug.Assert(v1 != null);

            if (v2 == null)
            {
                return true;
            }

            return v1 > v2; ;
        }
Beispiel #4
0
 internal bool IsNewerVersion(UpdatableHelpInfo helpInfo, CultureInfo culture)
 {
     Version cultureVersion = helpInfo.GetCultureVersion(culture);
     Version version2 = this.GetCultureVersion(culture);
     return ((version2 == null) || (cultureVersion > version2));
 }