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()); }
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(); }