Пример #1
0
        public Boolean isNewer(KreaProjectVersion oldVersion)
        {
            if (this.Major > oldVersion.Major)
            {
                return(true);
            }
            else if (this.Major < oldVersion.Major)
            {
                return(false);
            }

            else if (this.Minor > oldVersion.Minor)
            {
                return(true);
            }
            else if (this.Minor < oldVersion.Minor)
            {
                return(false);
            }

            else if (this.Build > oldVersion.Build)
            {
                return(true);
            }
            else if (this.Build < oldVersion.Build)
            {
                return(false);
            }

            else
            {
                return(false);
            }
        }
Пример #2
0
        public Boolean isNewer(KreaProjectVersion oldVersion)
        {
            if (this.Major > oldVersion.Major) return true;
            else if (this.Major < oldVersion.Major) return false;

            else if (this.Minor > oldVersion.Minor) return true;
            else if (this.Minor < oldVersion.Minor) return false;

            else if (this.Build > oldVersion.Build) return true;
            else if (this.Build < oldVersion.Build) return false;

            else
                return false;
        }