Exemple #1
0
        internal static UpdateInfo[] LoadExtendedInfo(string updateDirectory)
        {
            List <UpdateInfo> list = new List <UpdateInfo>();

            string      filePath = Path.Combine(updateDirectory, ConstUpdateFileName);
            XmlDocument doc      = new XmlDocument();

            doc.Load(filePath);

            foreach (XmlNode update in doc.SelectNodes("/Updates/Update"))
            {
                UpdateInfo item = new UpdateInfo();
                item.Load(update);
                list.Add(item);
            }

            list.Sort(CompareByVersion);

            return(list.ToArray());
        }
Exemple #2
0
        internal static UpdateInfo[] LoadExtendedInfo(string updateDirectory)
        {
            List<UpdateInfo> list = new List<UpdateInfo>();

            string filePath = Path.Combine(updateDirectory, ConstUpdateFileName);
            XmlDocument doc = new XmlDocument();
            doc.Load(filePath);

            foreach (XmlNode update in doc.SelectNodes("/Updates/Update"))
            {
                UpdateInfo item = new UpdateInfo();
                item.Load(update);
                list.Add(item);
            }

            list.Sort(CompareByVersion);

            return list.ToArray();
        }