示例#1
0
        private void getChangeLog(bool includeBeta, Version minVersion)
        {
            try
            {
                XmlNodeList allChanges;
                if (!includeBeta)
                {
                    try
                    {
                        allChanges = WinkleResponse.SelectNodes("Winkle/StableVersions/StableVersion");
                    }
                    catch
                    {
                        allChanges = null;
                    }
                }
                else
                {
                    try
                    {
                        allChanges = WinkleResponse.SelectNodes("Winkle/BetaVersions/BetaVersion");
                    }
                    catch
                    {
                        allChanges = null;
                    }
                }

                if (allChanges == null)
                {
                    return;
                }
                foreach (XmlNode thisChange in allChanges)
                {
                    try
                    {
                        Version localVersion = new Version(getVersion(thisChange, "Major"), getVersion(thisChange, "Minor"), getVersion(thisChange, "Build"), getVersion(thisChange, "Revision"));

                        if (localVersion <= minVersion)
                        {
                            continue;
                        }

                        DescriptionOfChanges thisVersion = new DescriptionOfChanges();
                        thisVersion.updateDescription = thisChange["NewInThisVersion"].InnerText;
                        thisVersion.version           = localVersion;
                        thisVersion.prettyName        = getPrettyName(thisChange);
                        changeLog.Add(thisVersion);
                    }
                    catch
                    {
                    }
                }
            }
            catch
            {
            }
        }
示例#2
0
 private void getChangeLog()
 {
     try
     {
         XmlNodeList allChanges = WinkleResponse.SelectNodes("Winkle/StableVersions/StableVersion");
         foreach (XmlNode thisChange in allChanges)
         {
             try
             {
                 DescriptionOfChanges thisVersion = new DescriptionOfChanges();
                 thisVersion.updateDescription = thisChange["NewInThisVersion"].InnerText;
                 thisVersion.setVersion(getVersion(thisChange, "Major"), getVersion(thisChange, "Minor"), getVersion(thisChange, "Build"), getVersion(thisChange, "Revision"));
                 thisVersion.prettyName = getPrettyName(thisChange);
                 changeLog.Add(thisVersion);
             }
             catch
             {
             }
         }
     }
     catch
     {
     }
 }