MissionPlanner.Utilities.Firmware.LoadSoftwares C# (CSharp) Method

LoadSoftwares() public static method

public static LoadSoftwares ( ) : List
return List
        public static List<software> LoadSoftwares()
        {
            try
            {
                System.Xml.Serialization.XmlSerializer reader =
                    new System.Xml.Serialization.XmlSerializer(typeof (List<software>), new Type[] {typeof (software)});

                using (
                    StreamReader sr =
                        new StreamReader(Settings.GetUserDataDirectory() + "fwversions.xml"))
                {
                    return (List<software>) reader.Deserialize(sr);
                }
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }

            return new List<software>();
        }