static void LoadFromShow() { if (!File.Exists(_games_path)) { _loopLinks = null; return; } Assembly myAssembly = Assembly.LoadFrom("Modules\\Games.dll"); using (Stream stream = myAssembly.GetManifestResourceStream("Games.XmlFile.PicFile.xml")) using (XmlReader xmlReader = new XmlTextReader(stream)) { var param = from file in XDocument.Load(xmlReader).Element("Pics").Elements("Pic") select ShowModel.CreateModel( file.Attribute("id").Value, file.Attribute("picsrc").Value, file.Attribute("title").Value ); try { foreach (var p in param) { _loopLinks.Add(p); } } catch { } } }