public ImageSet GetImages(string id) { if (this.managerImages == null) { this.managerImages = (IDictionary <string, ImageSet>) new Dictionary <string, ImageSet>(); string @string = ResourceExtensions.GetString(this.Resources["Microsoft.MediaCenter.Shell.dll"].GetResource("IMAGES.MCML", (object)10), Encoding.UTF8); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(@string); XmlNodeList childNodes = xmlDocument.DocumentElement.ChildNodes; for (int index = 0; index < childNodes.Count; ++index) { XmlElement element = childNodes[index] as XmlElement; if (element != null) { ImageSet imageSet = ImageSet.FromXml(this.Resources, element); if (imageSet.Name != null) { this.managerImages[imageSet.Name] = imageSet; } } } } ImageSet imageSet1; this.managerImages.TryGetValue(id, out imageSet1); if (imageSet1 == null) { Trace.TraceWarning("Could not find image set {0}.", new object[1] { (object)id }); } return(imageSet1); }