示例#1
0
            public bool IsBetterThan(UpdateItem update, AppUpdateLevel preferredType)
            {
                if (update == null)
                    return true;
                if ((int)this.Type > (int)preferredType)
                    return false;

                return this.Version > update.Version || this.Date > update.Date;
            }
示例#2
0
            public bool IsBetterThan(UpdateItem update, AppUpdateLevel preferredType)
            {
                if (update == null)
                {
                    return(true);
                }
                if ((int)this.Type > (int)preferredType)
                {
                    return(false);
                }

                return(this.Version > update.Version || this.Date > update.Date);
            }